Files
notify/docker-compose.deploy.yml
Michael Dong f34c01afdf Add configurable Docker mirror for China network builds
Add DOCKER_MIRROR build arg to Dockerfiles so base images can be
pulled through a mirror registry (e.g. docker.1ms.run/) when Docker
Hub is unreachable. Defaults to empty (direct Docker Hub).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 13:44:04 +08:00

41 lines
1.1 KiB
YAML

version: "3.8"
services:
backend:
build:
context: ./backend_rust
dockerfile: Dockerfile
args:
DOCKER_MIRROR: ${DOCKER_MIRROR:-}
container_name: notify-backend
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
DATABASE_URL: postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD}@host.docker.internal:5432/${POSTGRES_DB:-notify}
JWT_SECRET: ${JWT_SECRET:?JWT_SECRET is required}
BASE_URL: ${BASE_URL:-http://localhost}
ports:
- "127.0.0.1:4000:4000"
volumes:
- uploads_data:/app/uploads
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
DOCKER_MIRROR: ${DOCKER_MIRROR:-}
NEXT_PUBLIC_API_BASE: ${NEXT_PUBLIC_API_BASE:-http://localhost}
container_name: notify-frontend
restart: unless-stopped
depends_on:
- backend
environment:
NEXT_PUBLIC_API_BASE: ${NEXT_PUBLIC_API_BASE:-http://localhost}
ports:
- "127.0.0.1:3001:3000"
volumes:
uploads_data: