1
0
forked from baron/baron-sso
Files
baron-sso/docker-compose_local.yaml
2026-01-21 17:40:44 +09:00

58 lines
1.3 KiB
YAML

name: baron-sso
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: baron_backend
restart: unless-stopped
env_file:
- .env
environment:
- APP_ENV=${APP_ENV:-production}
- APP_ENV=production
- COOKIE_SECRET=4d15a1dc777757fb5300e6727368238dc7be055c49b48c56715687547e09778b
- 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:-3010}:3010"
depends_on:
- infra_check
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3010/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
networks:
- baron_net
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: baron_frontend
restart: unless-stopped
ports:
- "${FRONTEND_PORT:-80}:80"
depends_on:
backend:
condition: service_healthy
networks:
- baron_net
infra_check:
image: alpine
command: ["echo", "Infrastructure assumed running"]
networks:
- baron_net
networks:
baron_net:
external: true
name: baron_network