39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
services:
|
|
gitea:
|
|
image: gitea/gitea:latest
|
|
restart: unless-stopped
|
|
environment:
|
|
USER_UID: ${USER_UID}
|
|
USER_GID: ${USER_GID}
|
|
volumes:
|
|
- ${DATA_ROOT}/data:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
depends_on:
|
|
- gitea-db
|
|
|
|
runner:
|
|
image: gitea/act_runner:latest
|
|
restart: unless-stopped
|
|
environment:
|
|
CONFIG_FILE: /config/config.yaml
|
|
GITEA_INSTANCE_URL: "${INSTANCE_URL}"
|
|
GITEA_RUNNER_NAME: "gitea-runner-1"
|
|
GITEA_RUNNER_REGISTRATION_TOKEN: "${GITEA_RUNNER_REGISTRATION_TOKEN}"
|
|
volumes:
|
|
- ${DATA_ROOT}/runner/config:/config
|
|
- ${DATA_ROOT}/runner/data:/data
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
depends_on:
|
|
- gitea
|
|
|
|
gitea-db:
|
|
image: postgres:16
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${DATA_ROOT}/db:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
|
|
POSTGRES_DB: "${POSTGRES_DB}"
|
|
POSTGRES_USER: "${POSTGRES_USER}"
|