steveternet/nuc/drone/docker-compose.yml

74 lines
1.7 KiB
YAML
Raw Normal View History

2023-12-24 18:54:49 +00:00
version: "3.8"
services:
drone:
image: drone/drone:2
container_name: drone
labels:
- "traefik.http.services.drone.loadbalancer.server.port=80"
- "traefik.enable=true"
- "traefik.http.routers.drone.rule=Host(`drone.${DOMAIN_ROOT}`)"
- 'traefik.http.routers.drone.middlewares=authelia@docker'
2024-05-14 23:29:33 +00:00
restart: unless-stopped
2023-12-24 18:54:49 +00:00
environment:
- DRONE_GITEA_SERVER=https://gitea.${DOMAIN_ROOT}
- DRONE_GITEA_CLIENT_ID=${GITEA_CLIENT_ID}
- DRONE_GITEA_CLIENT_SECRET=${GITEA_CLIENT_SECRET}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_SERVER_HOST=drone.${DOMAIN_ROOT}
- DRONE_SERVER_PROTO=https
- DRONE_USER_CREATE=username:${DRONE_USER},admin:true
- DOMAIN_ROOT=${DOMAIN_ROOT}
- HOST_IP=${HOST_IP}
volumes:
- drone_data:/data
- /var/run/docker.sock:/var/run/docker.sock
extra_hosts:
- gitea.${DOMAIN_ROOT}:${HOST_IP}
- nuc.${DOMAIN_ROOT}:${HOST_IP}
- gitea-ssh.${DOMAIN_ROOT}:${HOST_IP}
2024-07-26 21:39:11 +00:00
- gitea.stevedudenhoeffer.com:${HOST_IP}
2023-12-24 18:54:49 +00:00
networks:
2024-01-04 21:42:14 +00:00
- default
- web
2023-12-24 18:54:49 +00:00
runner:
image: drone/drone-runner-docker:1
environment:
- DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=runners
- HOST_IP=${HOST_IP}
2024-05-14 23:29:33 +00:00
restart: unless-stopped
2023-12-24 18:54:49 +00:00
depends_on:
- drone
volumes:
- /var/run/docker.sock:/var/run/docker.sock
extra_hosts:
- gitea.${DOMAIN_ROOT}:${HOST_IP}
- nuc.${DOMAIN_ROOT}:${HOST_IP}
- gitea-ssh.${DOMAIN_ROOT}:${HOST_IP}
2024-07-26 21:39:11 +00:00
- gitea.stevedudenhoeffer.com:${HOST_IP}
2023-12-24 18:54:49 +00:00
2024-01-04 21:42:14 +00:00
networks:
- default
2023-12-24 18:54:49 +00:00
networks:
web:
2023-12-24 18:54:49 +00:00
external: true
volumes:
drone_data:
external: true
2023-12-24 18:54:49 +00:00