Env samples

This commit is contained in:
2021-07-07 08:55:49 -04:00
parent f4a8db56ff
commit 8c870cb43f
4 changed files with 12 additions and 2 deletions

4
.common.env.sample Normal file
View File

@ -0,0 +1,4 @@
DEBUG=true
DB_HOST="db"
ENV='dev'
API_URL='http://localhost:8081'

4
.db.env.sample Normal file
View File

@ -0,0 +1,4 @@
MYSQL_ROOT_PASSWORD=
MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_DATABASE=

2
.env.sample Normal file
View File

@ -0,0 +1,2 @@
FRONTEND_PORT=#Port for frontend UI
BACKEND_PORT=#Port for backend app

View File

@ -24,7 +24,7 @@ services:
build: build:
context: ./frontend context: ./frontend
dockerfile: PHP.Dockerfile dockerfile: PHP.Dockerfile
env_file: common.env env_file: .common.env
volumes: volumes:
- .:/app - .:/app
depends_on: depends_on:
@ -36,7 +36,7 @@ services:
context: ./backend context: ./backend
dockerfile: PHP.Dockerfile dockerfile: PHP.Dockerfile
env_file: env_file:
- common.env - .common.env
- .db.env - .db.env
volumes: volumes:
- .:/app - .:/app