Add .env instructions for docker compose

This commit is contained in:
Germán Martín 2024-05-29 11:50:53 +02:00
parent 6047684086
commit ee44d5dba8
3 changed files with 48 additions and 5 deletions

View file

@ -6,7 +6,7 @@ services:
context: .
init: true
env_file:
- .env.mariadb
- .env
volumes:
- ./data:/data
ports:
@ -22,7 +22,7 @@ services:
volumes:
- ./db-data:/var/lib/mysql
env_file:
- .env.mariadb
- .env
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -u${MARIADB_USER} -p${MARIADB_PASSWORD} || exit 1"]