38 lines
949 B
YAML
38 lines
949 B
YAML
version: '3.9'
|
|
|
|
services:
|
|
drone_gitea:
|
|
container_name: {{ customer }}-drone_gitea
|
|
image: drone/drone:2
|
|
restart: always
|
|
labels:
|
|
- "diun.enable=true"
|
|
volumes:
|
|
- {{ customer }}-drone-gitea-data:/data
|
|
- {{ customer }}-drone-gitea-backups:/tmp/backups
|
|
ports:
|
|
- "127.0.0.1:3009:80"
|
|
# - "127.0.0.1:3010:443"
|
|
environment:
|
|
DRONE_GITEA_SERVER: 'https://{{ domain_gitea }}'
|
|
DRONE_GITEA_CLIENT_ID: ''
|
|
DRONE_GITEA_CLIENT_SECRET: ''
|
|
DRONE_RPC_SECRET: '{{ drone_gitea_rpc_secret }}'
|
|
DRONE_SERVER_HOST: '{{ domain_gitea_drone }}'
|
|
DRONE_SERVER_PROTO: https
|
|
networks:
|
|
{{ customer }}-drone-gitea:
|
|
ipv4_address: 172.20.2.2
|
|
|
|
networks:
|
|
{{ customer }}-drone-gitea:
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 172.20.2.0/28
|
|
gateway: 172.20.2.1
|
|
|
|
volumes:
|
|
{{ customer }}-drone-gitea-data:
|
|
{{ customer }}-drone-gitea-backups:
|