server/Development/Runners/docker-compose.yml

34 lines
1.1 KiB
YAML
Raw Normal View History

2024-03-14 15:16:29 +00:00
version: "3.8"
services:
2024-09-11 09:36:42 +00:00
# Runner
2024-03-14 15:16:29 +00:00
runner:
image: gitea/act_runner:latest
2024-09-11 09:36:42 +00:00
container_name: gitea_runner
volumes:
- ./config.yaml:/config.yaml
- ./gitea_runner:/data
- /var/run/docker.sock:/var/run/docker.sock
networks:
- proxy
2024-03-14 15:16:29 +00:00
environment:
CONFIG_FILE: /config.yaml
GITEA_INSTANCE_URL: "git.luke-else.co.uk"
GITEA_RUNNER_REGISTRATION_TOKEN: "INSERT REGISTRATION TOKEN"
2024-09-11 09:36:42 +00:00
GITEA_RUNNER_NAME: "CICD"
labels:
## Expose cicd Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.middlewares.redirect-web-secure.redirectscheme.scheme=https"
- "traefik.http.routers.cicd-insecure.middlewares=redirect-web-secure"
- "traefik.http.routers.cicd-insecure.rule=Host(`cicd.luke-else.co.uk`)"
- "traefik.http.routers.cicd-insecure.entrypoints=web"
- "traefik.http.routers.cicd.rule=Host(`cicd.luke-else.co.uk`)"
- "traefik.http.routers.cicd.entrypoints=websecure"
- "traefik.http.routers.cicd.tls.certresolver=myresolver"
restart: unless-stopped
networks:
proxy:
external: true