1
0
mirror of https://gitea.com/docker_test/drone synced 2024-11-22 23:32:00 +01:00
drone-docker_compose/docker-compose.yml

36 lines
1.1 KiB
YAML
Raw Normal View History

2019-08-11 08:46:59 +02:00
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"