Add network Reviewed-on: #6 Co-authored-by: ryuupendragon <ryuu@ryuu.in> Co-committed-by: ryuupendragon <ryuu@ryuu.in>
29 lines
699 B
YAML
29 lines
699 B
YAML
services:
|
|
gitea-mirror:
|
|
image: ghcr.io/raylabshq/gitea-mirror:v2.21.0
|
|
container_name: gitea-mirror
|
|
user: ${PUID}:${PGID}
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DATABASE_URL=file:data/gitea-mirror.db
|
|
- HOST=0.0.0.0
|
|
- PORT=4321
|
|
- JWT_SECRET=${JWT_SECRET}
|
|
volumes:
|
|
- ${APPDATA_PATH}/gitea-mirror/data:/app/data
|
|
ports:
|
|
- ${PORT}:4321
|
|
networks:
|
|
- internal
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=3", "--spider", "http://localhost:4321/api/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 15s
|
|
|
|
networks:
|
|
internal:
|
|
external: true
|