name: at-transit networks: internal-network: external: true services: backend: build: context: ./backend image: at-transit-backend:latest container_name: at-transit-backend restart: unless-stopped networks: - internal-network extra_hosts: - "host-gateway:host-gateway" env_file: - .env environment: # SeaweedFS + Postgres มาจาก stack ของ D:\Git\core_management # (compose.storage.yaml / compose.internal.db.yaml) ผ่าน internal-network STORAGE_URL: ${STORAGE_URL:-http://seaweed-filer:8888} STORAGE_BUCKET: transit STORAGE_PUBLIC_BASE: /files BIND_ADDR: 0.0.0.0:${BACKEND_PORT} RUST_LOG: info,sqlx=warn,tower_http=info CORS_ALLOW_ORIGINS: "*" SEED_ASSETS_DIR: /seed-assets volumes: - ./storage/seed-assets:/seed-assets:ro ports: - "${BACKEND_PORT}:${BACKEND_PORT}" frontend: build: context: ./frontend args: NEXT_PUBLIC_API_BASE: /api NEXT_PUBLIC_FILES_BASE: /files BACKEND_INTERNAL_URL: http://at-transit-backend:${BACKEND_PORT} INTERNAL_API_BASE: http://at-transit-backend:${BACKEND_PORT}/api image: at-transit-frontend:latest container_name: at-transit-frontend restart: unless-stopped networks: - internal-network extra_hosts: - "host-gateway:host-gateway" environment: NEXT_PUBLIC_API_BASE: /api NEXT_PUBLIC_FILES_BASE: /files HOSTNAME: 0.0.0.0 INTERNAL_API_BASE: http://at-transit-backend:${BACKEND_PORT}/api BACKEND_INTERNAL_URL: http://at-transit-backend:${BACKEND_PORT} PORT: 3000 ports: - "${FRONTEND_PORT}:3000"