container-server/drone/docker-compose.yml

60 lines
1.5 KiB
YAML
Raw Normal View History

2019-11-05 20:58:51 +01:00
version: '3.7'
networks:
drone:
services:
drone:
image: drone/drone:1
container_name: drone
restart: unless-stopped
hostname: ci.${BASE_DOMAIN}
environment:
- DRONE_AGENTS_ENABLED=true
- DRONE_GITEA_SERVER=https://git.${BASE_DOMAIN}
2019-11-06 21:18:36 +01:00
- DRONE_GITEA_CLIENT_ID=DRONE_GITEA_CLIENT_ID
- DRONE_GITEA_CLIENT_SECRET=DRONE_GITEA_CLIENT_SECRET
- DRONE_RPC_SECRET=DRONE_RPC_SECRET
2019-11-05 20:58:51 +01:00
- DRONE_SERVER_HOST=ci.${BASE_DOMAIN}
- DRONE_SERVER_PROTO=https
- DRONE_DATABASE_DRIVER=postgres
- DRONE_DATABASE_DATASOURCE=postgres://drone:drone@pg-drone:5432/postgres?sslmode=disable
volumes:
- /srv/drone/data:/data
depends_on:
- pg-drone
networks:
- proxy
- drone
pg-drone:
image: postgres:12-alpine
container_name: pg-drone
restart: unless-stopped
environment:
- POSTGRES_USER=drone
- POSTGRES_PASSWORD=drone
- POSTGRES_DB=drone
volumes:
- /srv/drone/psql:/var/lib/postgresql/data
networks:
- drone
drone-runner:
image: drone/drone-runner-docker:1
container_name: drone-runner
restart: unless-stopped
hostname: runner.${BASE_DOMAIN}
environment:
- DRONE_RPC_PROTO=https
- DRONE_RPC_HOST=ci.${BASE_DOMAIN}
2019-11-06 21:18:36 +01:00
- DRONE_RPC_SECRET=DRONE_RPC_SECRET
2019-11-05 20:58:51 +01:00
- DRONE_RUNNER_CAPACITY=2
- DRONE_RUNNER_NAME=runner.${BASE_DOMAIN}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2019-11-06 21:18:36 +01:00
networks:
drone:
2019-11-05 20:58:51 +01:00
depends_on:
- drone