1
0
forked from baron/baron-sso

flutter 상위 구조로 포함. infra 분리 리팩토링

This commit is contained in:
Lectom C Han
2025-12-23 17:20:27 +09:00
commit 48589dca5d
85 changed files with 3120 additions and 0 deletions

51
docker-compose.yaml Normal file
View File

@@ -0,0 +1,51 @@
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: baron_backend
environment:
- APP_ENV=${APP_ENV:-development}
- COOKIE_SECRET=${COOKIE_SECRET}
- DB_HOST=postgres
- CLICKHOUSE_HOST=clickhouse
- CLICKHOUSE_PORT=${CLICKHOUSE_PORT_NATIVE:-9000}
ports:
- "${BACKEND_PORT:-3000}:3000"
depends_on:
- infra_check
networks:
- baron_net
volumes:
- ./backend:/app
frontend:
image: ghcr.io/cirruslabs/flutter:3.19.0 # Using a pre-built Flutter image for Dev
container_name: baron_frontend
working_dir: /app
environment:
- DESCOPE_PROJECT_ID=${DESCOPE_PROJECT_ID}
ports:
- "${FRONTEND_PORT:-5000}:5000"
volumes:
- ./frontend:/app
command: ["flutter", "run", "-d", "web-server", "--web-port", "5000", "--web-hostname", "0.0.0.0"]
networks:
- baron_net
# Dummy service to wait for infra network if needed,
# but essentially we assume infra is running.
# In a real unified stack, we might include infra here or use external links.
# Here we attach to the same network.
infra_check:
image: alpine
command: ["echo", "Infrastructure assumed running"]
networks:
- baron_net
networks:
baron_net:
external: true
name: baron_network