mirror of
https://github.com/jonasrosland/gitmirror.git
synced 2025-05-10 20:05:33 +02:00
34 lines
No EOL
663 B
YAML
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:
|
|
|