init project template blueprint with websocket
This commit is contained in:
@@ -3,42 +3,14 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
target: prod
|
||||
restart: unless-stopped
|
||||
restart: always
|
||||
ports:
|
||||
- ${PORT}:${PORT}
|
||||
- 8803:8803
|
||||
environment:
|
||||
APP_ENV: ${APP_ENV}
|
||||
PORT: ${PORT}
|
||||
BLUEPRINT_DB_HOST: ${BLUEPRINT_DB_HOST}
|
||||
BLUEPRINT_DB_PORT: ${BLUEPRINT_DB_PORT}
|
||||
BLUEPRINT_DB_USERNAME: ${BLUEPRINT_DB_USERNAME}
|
||||
BLUEPRINT_DB_ROOT_PASSWORD: ${BLUEPRINT_DB_ROOT_PASSWORD}
|
||||
depends_on:
|
||||
mongo_bp:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- blueprint
|
||||
mongo_bp:
|
||||
image: mongo:latest
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: ${BLUEPRINT_DB_USERNAME}
|
||||
MONGO_INITDB_ROOT_PASSWORD: ${BLUEPRINT_DB_ROOT_PASSWORD}
|
||||
ports:
|
||||
- "${BLUEPRINT_DB_PORT}:27017"
|
||||
volumes:
|
||||
- mongo_volume_bp:/data/db
|
||||
healthcheck:
|
||||
test: ["CMD","mongosh", "--eval", "db.adminCommand('ping')"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 15s
|
||||
networks:
|
||||
- blueprint
|
||||
|
||||
volumes:
|
||||
mongo_volume_bp:
|
||||
networks:
|
||||
blueprint:
|
||||
TZ: Asia/Jakarta
|
||||
BLUEPRINT_DB_HOST: 10.10.123.206
|
||||
BLUEPRINT_DB_PORT: 27017
|
||||
BLUEPRINT_DB_USER: admin
|
||||
BLUEPRINT_DB_PASS: stim*rs54
|
||||
BLUEPRINT_DB_MASTER: master
|
||||
BLUEPRINT_DB_LOCAL: local
|
||||
Reference in New Issue
Block a user