This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
drone/compose.yml

55 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2020-06-18 14:13:29 +00:00
version: "3.8"
services:
app:
image: "drone/drone:2.0.4"
2020-06-18 14:13:29 +00:00
volumes:
- "data:/data"
2020-06-23 08:58:53 +00:00
configs:
- source: drone_env
target: .env
2020-06-18 14:13:29 +00:00
environment:
- DRONE_GIT_ALWAYS_AUTH=true
- DRONE_JSONNET_ENABLED=true
- DRONE_SERVER_HOST=${DOMAIN}
- DRONE_SERVER_PORT=:${PORT:-8042}
- DRONE_SERVER_PROTO=https
- DRONE_USER_CREATE=${DRONE_USER_CREATE}
2020-06-18 14:17:37 +00:00
networks:
- proxy
secrets:
- rpc_secret
healthcheck:
test: ["CMD", "wget", "-qO", "-", "http://localhost:8042/healthz"]
interval: 10s
timeout: 10s
retries: 10
start_period: 10s
2020-06-18 14:17:37 +00:00
deploy:
update_config:
failure_action: rollback
order: start-first
2020-06-18 14:17:37 +00:00
labels:
- "traefik.enable=true"
2020-10-05 23:17:55 +00:00
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=${PORT:-8042}"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
2021-06-28 07:06:43 +00:00
- coop-cloud.${STACK_NAME}.app.version=2.0.2-d7fc6618
volumes:
data:
2020-06-23 08:58:53 +00:00
configs:
drone_env:
name: ${STACK_NAME}_drone_env_${DRONE_ENV_VERSION}
file: drone.env.tmpl
2020-06-23 08:58:53 +00:00
template_driver: golang
secrets:
rpc_secret:
name: ${STACK_NAME}_rpc_secret_${RPC_SECRET_VERSION}
external: true
networks:
proxy:
external: true