refactor docker-compose.yaml
This commit is contained in:
@@ -1,23 +1,6 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
web-chat:
|
||||
build:
|
||||
context: .
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
APP_PORT: ${APP_PORT}
|
||||
PG_HOST: ${PG_HOST}
|
||||
PG_USER: ${PG_USER}
|
||||
PG_DATABASE: ${PG_DATABASE}
|
||||
PG_PASSWORD: ${PG_PASSWORD}
|
||||
SESSION_SECRET: ${SESSION_SECRET}
|
||||
JWT_SECRET: ${JWT_SECRET}
|
||||
ports:
|
||||
- ${APP_PORT}:${APP_PORT}
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: postgres:latest
|
||||
restart: always
|
||||
@@ -35,5 +18,23 @@ services:
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
web-chat:
|
||||
build:
|
||||
context: .
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
APP_PORT: ${APP_PORT}
|
||||
PG_HOST: ${PG_HOST}
|
||||
PG_USER: ${PG_USER}
|
||||
PG_DATABASE: ${PG_DATABASE}
|
||||
PG_PASSWORD: ${PG_PASSWORD}
|
||||
SESSION_SECRET: ${SESSION_SECRET}
|
||||
JWT_SECRET: ${JWT_SECRET}
|
||||
ports:
|
||||
- ${APP_PORT}:${APP_PORT}
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
|
||||
Reference in New Issue
Block a user