32 lines
794 B
YAML
32 lines
794 B
YAML
version: "2"
|
|
|
|
networks:
|
|
webproxy:
|
|
external: true
|
|
|
|
backend-gitea:
|
|
external: true
|
|
|
|
services:
|
|
drone:
|
|
container_name: drone
|
|
image: drone/drone:1.9
|
|
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
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- /opt/appdata/drone:/data
|
|
networks:
|
|
- backend-gitea
|
|
- webproxy |