mirror of
https://gitea.com/docker_test/drone
synced 2024-11-22 07:11:58 +01:00
init
This commit is contained in:
commit
0e21e8bf75
3
README.md
Normal file
3
README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# drone docker compose file
|
||||
|
||||
|
35
docker-compose.yml
Normal 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"
|
Loading…
Reference in New Issue
Block a user