35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
x-common-attributes: &common-attributes
|
|
env_file: .env
|
|
restart: unless-stopped
|
|
networks: [network]
|
|
volumes:
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
services:
|
|
# uncomment to import gitea database backup on first start
|
|
# gitea-db:
|
|
# volumes:
|
|
# - ./gitea/dump.sql.gz:/docker-entrypoint-initdb.d/dump.sql.gz
|
|
|
|
# uncomment to import opengist database backup on first start
|
|
# opengist-db:
|
|
# volumes:
|
|
# - ./opengist/dump.sql.gz:/docker-entrypoint-initdb.d/dump.sql.gz
|
|
|
|
# uncomment to use gitea runner
|
|
gitea-runner:
|
|
<<: *common-attributes
|
|
container_name: gitea-runner
|
|
image: docker.io/gitea/act_runner:latest
|
|
environment:
|
|
CONFIG_FILE: /config.yaml
|
|
GITEA_INSTANCE_URL: http://gitea:3000
|
|
GITEA_RUNNER_REGISTRATION_TOKEN: ${RUNNER_REG_TOKEN}
|
|
GITEA_RUNNER_NAME: gitea-runner
|
|
# GITEA_RUNNER_LABELS: ${RUNNER_LABELS}
|
|
volumes:
|
|
- ./runner/config.yaml:/config.yaml
|
|
- ./runner/data:/data
|
|
- /var/run/docker.sock:/var/run/docker.sock
|