build: add more environment variables for Docker
This commit is contained in:
parent
a8c5862904
commit
7e744f6b58
|
@ -2,3 +2,9 @@ MYSQL_DATABASE=drupal
|
||||||
MYSQL_PASSWORD=drupal
|
MYSQL_PASSWORD=drupal
|
||||||
MYSQL_ROOT_PASSWORD=root
|
MYSQL_ROOT_PASSWORD=root
|
||||||
MYSQL_USER=drupal
|
MYSQL_USER=drupal
|
||||||
|
|
||||||
|
# DOCKER_MYSQL_VOLUME=./db-data:/var/lib/mysql
|
||||||
|
DOCKER_MYSQL_VOLUME=mysql_data:/var/lib/mysql
|
||||||
|
|
||||||
|
# DOCKER_WEB_PORT=80
|
||||||
|
DOCKER_WEB_PORT=127.0.0.1:80
|
||||||
|
|
|
@ -19,7 +19,7 @@ services:
|
||||||
php:
|
php:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- "${DOCKER_WEB_PORT:-127.0.0.1:80}:80"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
php:
|
php:
|
||||||
|
@ -40,7 +40,7 @@ services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mariadb:10
|
image: mariadb:10
|
||||||
volumes:
|
volumes:
|
||||||
- mysql_data:/var/lib/mysql
|
- "${DOCKER_MYSQL_VOLUME:-./db-data:/var/lib/mysql}"
|
||||||
- ./tools/assets/development:/docker-entrypoint-initdb.d
|
- ./tools/assets/development:/docker-entrypoint-initdb.d
|
||||||
env_file:
|
env_file:
|
||||||
- .docker.env
|
- .docker.env
|
||||||
|
|
Loading…
Reference in a new issue