gitmirror/docker-compose.yml
Jonas Rosland 9fc76bfaf5 Fix errors with config.json not existing in the repo
Signed-off-by: Jonas Rosland <jonas.rosland@gmail.com>
2025-04-04 01:01:56 -04:00

34 lines
No EOL
663 B
YAML

services:
web:
build: .
ports:
- "5000:5000"
volumes:
- gitmirror_logs:/app/logs
- ./config.json:/app/config.json
- ./data/config:/app/data/config
env_file:
- .env
command: web
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
mirror:
build: .
volumes:
- gitmirror_logs:/app/logs
- ./config.json:/app/config.json
- ./data/config:/app/data/config
env_file:
- .env
command: mirror
restart: "no"
volumes:
gitmirror_logs: