services: backend: build: context: . dockerfile: Dockerfile.backend container_name: yixuan-backend ports: - "18889:18889" volumes: - ./data:/app/data - ./config.ini:/app/config.ini:ro - ./config:/app/config:ro - ./templates:/app/templates:ro env_file: - .env restart: unless-stopped frontend: build: context: . dockerfile: Dockerfile.frontend container_name: yixuan-frontend ports: - "18888:18888" depends_on: - backend restart: unless-stopped