Open ovizii opened 6 years ago
does your adapted docker-compose.yml file start with the version reference? like:
version: '3'
sorry, my mistake I should have provided that info.
version: '3'
services:
db:
image: mariadb
restart: always
volumes:
- /home/ovi/docker/datencockpit/datencockpit-db:/var/lib/mysql
- ./kdz_datencockpit.sql:/docker-entrypoint-initdb.d/kdz_datencockpit.sql
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=kdz_datencockpit
- MYSQL_USER=kdz_datencockpit
- MYSQL_PASSWORD=secret
logging:
options:
max-size: 50m
datencockpit:
build:
context: .
args:
DATENCOCKPIT_SITENAME: "Datencockpit"
DATENCOCKPIT_URL: "https://dsgvo.mydomain.tld"
DATENCOCKPIT_EMERGENCY_CONTACT: "ovidiu@mydomain.tld"
DATENCOCKPIT_DB_HOST: "db"
DATENCOCKPIT_DB_NAME: "kdz_datencockpit"
DATENCOCKPIT_DB_USER: "kdz_datencockpit"
DATENCOCKPIT_DB_PASSWORD: "secret"
restart: always
volumes:
- /home/ovi/docker/datencockpit/datencockpit-html:/var/www/html
depends_on:
- db
links:
- db:db
ports:
- 80:80
logging:
options:
max-size: 50m
hmm, looks good... maybe your docker-compose version is too old, what's
docker-compose -v
saying? It needs to be 1.10.0 or newer (from what I know). If yours is older try changing the "version" in your docker-compose.yml to "2" and see if it still works (I haven't tried) or update your docker-compose.
docker-compose -v
docker-compose version 1.8.0, build unknown
Docker is installed on Debian from repositories according to: https://docs.docker.com/install/linux/docker-ce/debian/
I replaced '3' with '2' and the build process succeeds. "Seems" to be working fine.
Very good, as I do not use any features of docker compose version "3" I changed the verison of the template to "2" also.
I "slightly" adapted the docker-compose.yml file but when trying the
docker-compose build command I get this error:
Any advice?