You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
2 years ago
|
version: '3.6'
|
||
|
services:
|
||
|
drone:
|
||
|
container_name: drone
|
||
|
image: drone/drone:${DRONE_VERSION:-1.6.4}
|
||
|
restart: unless-stopped
|
||
|
environment:
|
||
|
# https://docs.drone.io/server/provider/gitea/
|
||
|
- DRONE_DATABASE_DRIVER=sqlite3
|
||
|
- DRONE_DATABASE_DATASOURCE=/data/database.sqlite
|
||
|
- DRONE_GITEA_SERVER=https://code.ndumas.com
|
||
|
- DRONE_GIT_ALWAYS_AUTH=false
|
||
|
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
|
||
|
- DRONE_SERVER_PROTO=https
|
||
|
- DRONE_SERVER_HOST=drone.ndumas.com
|
||
|
- DRONE_TLS_AUTOCERT=false
|
||
|
- DRONE_USER_CREATE=${DRONE_USER_CREATE}
|
||
|
- DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
|
||
|
- DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET}
|
||
|
ports:
|
||
|
- "3001:80"
|
||
|
- "3002:443"
|
||
|
networks:
|
||
|
- cicd_net
|
||
|
volumes:
|
||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||
|
- ./drone:/data:z
|
||
|
|
||
|
drone-runner:
|
||
|
container_name: drone-runner
|
||
|
image: drone/drone-runner-docker:${DRONE_RUNNER_VERSION:-1}
|
||
|
restart: unless-stopped
|
||
|
depends_on:
|
||
|
- drone
|
||
|
environment:
|
||
|
# https://docs.drone.io/runner/docker/installation/linux/
|
||
|
# https://docs.drone.io/server/metrics/
|
||
|
- DRONE_RPC_PROTO=https
|
||
|
- DRONE_RPC_HOST=drone.ndumas.com
|
||
|
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
|
||
|
- DRONE_RUNNER_NAME="${HOSTNAME}-runner"
|
||
|
- DRONE_RUNNER_CAPACITY=2
|
||
|
- DRONE_RUNNER_NETWORKS=cicd_net
|
||
|
- DRONE_DEBUG=false
|
||
|
- DRONE_TRACE=false
|
||
|
ports:
|
||
|
- "3000:3000"
|
||
|
networks:
|
||
|
- cicd_net
|
||
|
volumes:
|
||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||
|
|
||
|
networks:
|
||
|
cicd_net:
|
||
|
name: cicd_net
|