drone/docker-compose.yml

32 lines
794 B
YAML
Raw Normal View History

2020-10-08 07:26:46 +00:00
version: "2"
networks:
webproxy:
external: true
2020-10-08 07:26:46 +00:00
backend-gitea:
external: true
services:
drone:
container_name: drone
image: drone/drone:1.9
2020-10-08 07:26:46 +00:00
restart: always
environment:
- DRONE_GITEA_SERVER=https://git.bmen.cc
- DRONE_GIT_ALWAYS_AUTH=false
- DRONE_RUNNER_CAPACITY=1
- DRONE_SERVER_HOST=drone.bmen.cc
- DRONE_SERVER_PROTO=https
- DRONE_TLS_AUTOCERT=false
- DRONE_GITEA_CLIENT_ID=client-id
- DRONE_GITEA_CLIENT_SECRET=client-secret
- VIRTUAL_HOST=drone.bmen.cc
- VIRTUAL_PORT=80
- DRONE_USER_CREATE=username:${DRONE_ADMIN},admin:true
2020-10-08 07:26:46 +00:00
volumes:
- /var/run/docker.sock:/var/run/docker.sock
2020-10-08 10:25:28 +00:00
- /opt/appdata/drone:/data
2020-10-08 07:26:46 +00:00
networks:
- backend-gitea
- webproxy