Env samples
This commit is contained in:
4
.common.env.sample
Normal file
4
.common.env.sample
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
DEBUG=true
|
||||||
|
DB_HOST="db"
|
||||||
|
ENV='dev'
|
||||||
|
API_URL='http://localhost:8081'
|
4
.db.env.sample
Normal file
4
.db.env.sample
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
MYSQL_ROOT_PASSWORD=
|
||||||
|
MYSQL_USER=
|
||||||
|
MYSQL_PASSWORD=
|
||||||
|
MYSQL_DATABASE=
|
2
.env.sample
Normal file
2
.env.sample
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
FRONTEND_PORT=#Port for frontend UI
|
||||||
|
BACKEND_PORT=#Port for backend app
|
@ -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
|
||||||
|
Reference in New Issue
Block a user