added env vars into all docker composes (dev & prod)

This commit is contained in:
Clément Le Bihan
2023-03-29 17:17:28 +02:00
parent 8784e8de3c
commit b8811a7ff7
2 changed files with 19 additions and 11 deletions

View File

@@ -40,14 +40,18 @@ services:
ports:
- "5432:5432"
front:
build:
context: ./front
dockerfile: Dockerfile.dev
ports:
- "19006:19006"
volumes:
- ./front:/app
depends_on:
- "back"
env_file:
- .env
build:
context: ./front
dockerfile: Dockerfile.dev
environment:
- API_URL=http://back:3000/
- SCOROMETER_URL=http://scorometer:6543/
- NGINX_PORT=80
ports:
- "19006:19006"
volumes:
- ./front:/app
depends_on:
- "back"
env_file:
- .env

View File

@@ -33,6 +33,10 @@ services:
front:
image: ghcr.io/chroma-case/front:main
environment:
- API_URL=http://back:3000/
- SCOROMETER_URL=http://scorometer:6543/
- NGINX_PORT=80
ports:
- "80:80"
depends_on: