summaryrefslogtreecommitdiff
path: root/roles/drone/templates/docker-compose.yml.j2
blob: 8c5e31e7376e110bf3ace6037ba20d2b577fe181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: '3'

services:
  drone:
    container_name: drone
    image: drone/drone:latest
    volumes:
      - ./drone:/data
    ports:
      - "127.0.0.1:2201:80"
    environment:
      - DRONE_GITEA_SERVER=https://git.simponic.xyz
      - DRONE_GITEA_CLIENT_ID={{ drone_gitea_client_id }}
      - DRONE_GITEA_CLIENT_SECRET={{ drone_gitea_client_secret }}
      - DRONE_GIT_ALWAYS_AUTH=true
      - DRONE_SERVER_PROTO=https
      - DRONE_SERVER_HOST=drone.internal.simponic.xyz
      - DRONE_RPC_SECRET={{ drone_rpc_secret }}
  drone-runner:
    container_name: drone_runner
    image: drone/drone-runner-docker:latest
    userns_mode: 'host' # Needed to get access to docker socket
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_RPC_SECRET={{ drone_rpc_secret }}
      - DRONE_RPC_HOST=drone:80
      - DRONE_RPC_PROTO=http
      - DRONE_RUNNER_CAPACITY=4