53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
services:
|
|
runner:
|
|
image: docker.io/gitea/act_runner:nightly
|
|
environment:
|
|
CONFIG_FILE: /config.yaml
|
|
GITEA_INSTANCE_URL: http://gitea:3000/
|
|
GITEA_RUNNER_REGISTRATION_TOKEN: znrn4iy94Zx2OWwQx4UHkdWMOH6ISBQ6NVfdkf4K
|
|
GITEA_RUNNER_NAME: FastFlaskRunner
|
|
volumes:
|
|
- ./config.yaml:/config.yaml
|
|
- /prod/pkgs:/prod/pkgs
|
|
- /prod/data:/prod/data
|
|
- /prod/develop/data:/develop/data
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
depends_on:
|
|
- gitea
|
|
restart: always
|
|
networks:
|
|
- fast-services
|
|
|
|
gitea:
|
|
image: gitea/gitea:latest
|
|
container_name: gitea
|
|
restart: always
|
|
environment:
|
|
- ROOT_URL=https://git.nxs.solutions/
|
|
# Map container ports to host ports (Web UI: 3000, SSH: 2222)
|
|
ports:
|
|
- "2222:22"
|
|
volumes:
|
|
# Persistent storage for Gitea data, configuration, repositories, etc.
|
|
# Maps a named volume 'gitea_data' to the container's /data directory.
|
|
- ./data:/data
|
|
# Timezone settings for consistent timekeeping
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /srv/git:/data/host_repos:ro # <--- ADD THIS LINE
|
|
- ./logs/:/data/gitea/log/:rw
|
|
|
|
networks:
|
|
- fast-services
|
|
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
|
|
interval: 1m30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
|
|
networks:
|
|
fast-services:
|
|
external: true
|