forked from baron/baron-sso
배포용 Docker compose 및 가이드 작성
This commit is contained in:
46
docker/docker-compose.deploy.yaml
Normal file
46
docker/docker-compose.deploy.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
name: baron-sso
|
||||
|
||||
services:
|
||||
backend:
|
||||
image: reg.hmac.kr/baron_sso/backend:v1.2601.1-RC1
|
||||
container_name: baron_backend
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- APP_ENV=${APP_ENV:-production}
|
||||
- APP_ENV=production
|
||||
- COOKIE_SECRET=${COOKIE_SECRET}
|
||||
- DB_HOST=postgres
|
||||
- CLICKHOUSE_HOST=clickhouse
|
||||
- CLICKHOUSE_PORT=${CLICKHOUSE_PORT_NATIVE:-9000}
|
||||
- CLICKHOUSE_USER=${CLICKHOUSE_USER:-baron}
|
||||
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD:-password}
|
||||
ports:
|
||||
- "${BACKEND_PORT:-3000}:3000"
|
||||
depends_on:
|
||||
- infra_check
|
||||
networks:
|
||||
- baron_net
|
||||
|
||||
frontend:
|
||||
image: reg.hmac.kr/baron_sso/frontend:v1.2601.1-RC1
|
||||
container_name: baron_frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "${FRONTEND_PORT:-80}:80"
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
- baron_net
|
||||
|
||||
infra_check:
|
||||
image: alpine
|
||||
command: ["echo", "Infrastructure assumed running"]
|
||||
networks:
|
||||
- baron_net
|
||||
|
||||
networks:
|
||||
baron_net:
|
||||
external: true
|
||||
name: baron_network
|
||||
Reference in New Issue
Block a user