---
version: "3"

services:
  drone:
    container_name: drone
    image: drone/drone:latest
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - /opt/docker/drone/data:/data
    environment:
      - DRONE_GITEA_SERVER=https://{{ DRONE_GITEA_SERVER }}
      - DRONE_GITEA_CLIENT_ID={{ DRONE_GITEA_CLIENT_ID }}
      - DRONE_GITEA_CLIENT_SECRET={{ DRONE_GITEA_CLIENT_SECRET }}
      - DRONE_RPC_SECRET={{ DRONE_RPC_SECRET.stdout }}
      - DRONE_SERVER_HOST={{ DRONE_SERVER_HOST }}
      - DRONE_SERVER_PROTO=http