Skip to content
Snippets Groups Projects
Commit e0b53901 authored by Moreau Elise's avatar Moreau Elise
Browse files

mysql env variables are in a separate file now

parent 450dc760
No related branches found
No related tags found
No related merge requests found
.env 0 → 100644
MYSQL_ROOT_PASSWORD=root
MYSQL_DATABASE=covid
MYSQL_USER=user
MYSQL_PASSWORD=user
\ No newline at end of file
...@@ -19,11 +19,12 @@ services: ...@@ -19,11 +19,12 @@ services:
db: db:
image: mysql:5.6 image: mysql:5.6
restart: always restart: always
env_file: .env
environment: environment:
MYSQL_ROOT_PASSWORD: root - MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: covid - MYSQL_DATABASE
MYSQL_USER: user - MYSQL_USER
MYSQL_PASSWORD: user - MYSQL_PASSWORD
phpmyadmin: phpmyadmin:
image: phpmyadmin image: phpmyadmin
restart: always restart: always
...@@ -33,7 +34,7 @@ services: ...@@ -33,7 +34,7 @@ services:
- PMA_ARBITRARY=1 - PMA_ARBITRARY=1
composer: composer:
image: composer image: composer
volumes: volumes:
- .:/var/www - .:/var/www
working_dir: /var/www working_dir: /var/www
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment