chore: move environment variables file to formatted key value

This commit is contained in:
Reinaldy Rafli 2022-10-16 11:25:36 +07:00
parent 6f67559166
commit f75e545bc5
No known key found for this signature in database
GPG Key ID: EA1B2522C1693EC8
1 changed files with 16 additions and 3 deletions

View File

@ -1,7 +1,16 @@
services:
api:
build: ./api/
env_file: ./api/.env
environment:
ENV: production
PORT: 5000
HOSTNAME: "0.0.0.0"
REDIS_URL: redis://@cache:6379
MINIO_HOST: bucket:9000
MINIO_ACCESS_ID: minio
MINIO_SECRET_KEY: password
MINIO_TOKEN: ""
SENTRY_DSN: ""
ports:
- 5000:5000
healthcheck:
@ -33,8 +42,12 @@ services:
client:
build: ./client/
restart: always
env_file: ./client/.env
environment:
PORT: 3000
VITE_NODE_ENV: production
VITE_SERVER_API_ENDPOINT: http://api:5000
VITE_BROWSER_API_ENDPOINT: http://localhost:3000
VITE_SENTRY_DSN: ""
ports:
- 3000:3000
healthcheck: