1
0
mirror of https://gitea.com/docker_test/drone synced 2024-11-26 05:32:09 +01:00
This commit is contained in:
Lunny Xiao 2019-08-11 14:46:59 +08:00
commit 0e21e8bf75
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 38 additions and 0 deletions

3
README.md Normal file

@ -0,0 +1,3 @@
# drone docker compose file

35
docker-compose.yml Normal file

@ -0,0 +1,35 @@
version: '2'
services:
drone-server:
image: drone/drone:1
volumes:
- ./:/data
- /var/run/docker.sock:/var/run/docker.sock
restart: always
environment:
- DRONE_SERVER_HOST=${DRONE_SERVER_HOST}
- DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO}
- DRONE_TLS_AUTOCERT=${DRONE_TLS_AUTOCERT}
# Gitea Config
- DRONE_GITEA_SERVER=${DRONE_GITEA_SERVER}
- DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID}
- DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET}
- DRONE_LOGS_PRETTY=true
- DRONE_LOGS_COLOR=true
- DRONE_AGENTS_ENABLED=${DRONE_AGENTS_ENABLED}
- DRONE_RPC_SECRET=${DRONE_RPC_SECRET}
- DRONE_GIT_ALWAYS_AUTH=${DRONE_GIT_ALWAYS_AUTH}
- DRONE_USER_CREATE=username:lunny,admin:true
networks:
- web
logging:
options:
max-size: "100k"
max-file: "3"
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Host:${DRONE_SERVER_HOST}"
- "traefik.basic.port=80"
- "traefik.basic.protocol=http"