Add env_file to mysql container def.

podman-compose-env
Mike Holloway 4 months ago
parent 2fa7a8a293
commit e0c0f3e58f
  1. 2
      docker-compose.yml

@ -6,7 +6,7 @@ services:
volumes: volumes:
- ~/wordpress/database:/var/lib/mysql - ~/wordpress/database:/var/lib/mysql
restart: always restart: always
env_file: ".env" env_file: ".env"
environment: environment:
MYSQL_ROOT_PASSWORD: $(MYSQL_ROOT_PASSWORD) MYSQL_ROOT_PASSWORD: $(MYSQL_ROOT_PASSWORD)
MYSQL_DATABASE: $(MYSQL_DATABASE) MYSQL_DATABASE: $(MYSQL_DATABASE)

Loading…
Cancel
Save