auto commit

This commit is contained in:
bangdk 2024-11-18 19:52:55 +09:00
parent b413a1aac4
commit e2b82498b9

View File

@ -11,11 +11,11 @@ services:
container_name: fems-admin container_name: fems-admin
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- .env.${NODE_ENV:-production} - .env.${NODE_ENV:-development}
ports: ports:
- "${ADMIN_PORT}:3002" - "${ADMIN_PORT}:3002"
environment: environment:
- NODE_ENV=${NODE_ENV:-production} - NODE_ENV=${NODE_ENV:-development}
volumes: volumes:
- ./fems-admin:/app - ./fems-admin:/app
- /app/node_modules - /app/node_modules
@ -40,11 +40,11 @@ services:
container_name: fems-app container_name: fems-app
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- .env.${NODE_ENV:-production} - .env.${NODE_ENV:-development}
ports: ports:
- "${APP_PORT}:3003" - "${APP_PORT}:3003"
environment: environment:
- NODE_ENV=${NODE_ENV:-production} - NODE_ENV=${NODE_ENV:-development}
volumes: volumes:
- ./fems-app:/app - ./fems-app:/app
- /app/node_modules - /app/node_modules
@ -59,17 +59,14 @@ services:
container_name: fems-api container_name: fems-api
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- .env.${NODE_ENV:-production} - .env.${NODE_ENV:-development}
ports: ports:
- "${API_PORT}:3001" - "${API_PORT}:3001"
environment: environment:
- NODE_ENV=${NODE_ENV:-production} - NODE_ENV=${NODE_ENV:-development}
volumes: volumes:
- ./fems-api:/app - ./fems-api:/app
- /app/node_modules - /app/node_modules
depends_on:
- postgres
# - redis
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"] test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 30s interval: 30s
@ -84,17 +81,16 @@ services:
container_name: fems-realtime-api container_name: fems-realtime-api
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- .env.${NODE_ENV:-production} - .env.${NODE_ENV:-development}
ports: ports:
- "${REALTIME_API_PORT}:3004" - "${REALTIME_API_PORT}:3004"
environment: environment:
- NODE_ENV=${NODE_ENV:-production} - NODE_ENV=${NODE_ENV:-development}
volumes: volumes:
- ./fems-realtime-api:/app - ./fems-realtime-api:/app
- /app/node_modules - /app/node_modules
depends_on: depends_on:
- fems-api - fems-api
- postgres
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3004/health"] test: ["CMD", "curl", "-f", "http://localhost:3004/health"]
interval: 30s interval: 30s