version: '2' services: drone-server: image: drone/drone:1 volumes: - ./:/data - /var/run/docker.sock:/var/run/docker.sock restart: always ports: - 4000:80 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 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"