data.coop-ansible/roles/docker/tasks/services/drone.yml

24 lines
846 B
YAML
Raw Normal View History

2019-03-02 21:34:33 +00:00
---
- name: Drone container
docker_container:
name: drone
2020-03-01 07:03:05 +00:00
image: drone/drone:1.6.5
2019-03-02 21:34:33 +00:00
restart_policy: unless-stopped
networks:
- name: external_services
volumes:
- "{{ drone.volume_folder }}:/data"
- "/var/run/docker.sock:/var/run/docker.sock"
env:
DRONE_GITEA_SERVER: "https://{{ gitea.domain }}"
2020-03-01 07:03:05 +00:00
DRONE_GITEA_CLIENT_ID: "{{ drone_secrets.oauth_client_id }}"
DRONE_GITEA_CLIENT_SECRET: "{{ drone_secrets.oauth_client_secret }}"
DRONE_GIT_ALWAYS_AUTH: "true"
2019-03-02 21:34:33 +00:00
DRONE_SERVER_HOST: "{{ drone.domain }}"
DRONE_SERVER_PROTO: "https"
2020-03-01 07:03:05 +00:00
DRONE_RPC_SECRET: "{{ drone_secrets.rpc_shared_secret }}"
2019-03-02 21:34:33 +00:00
PLUGIN_CUSTOM_DNS: "91.239.100.100"
VIRTUAL_HOST: "{{ drone.domain }}"
LETSENCRYPT_HOST: "{{ drone.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"