-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.yml
98 lines (90 loc) · 2.18 KB
/
ci.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
version: '3'
networks:
ci-network:
external:
name: ci_ci-network
volumes:
gogs-data:
mariadb-data:
drone-data:
registry-data:
services:
gogs:
image: gogs/gogs:0.10.18
depends_on: [ mariadb-gogs ]
volumes:
- gogs-data:/data
deploy:
labels:
- "traefik.frontend.entryPoints=http"
- "traefik.docker.network=ci_ci-network"
- "traefik.enable=true"
- "traefik.port=3000"
- "traefik.frontend.rule=Host:gogs.${DOMAIN}"
networks:
- ci-network
mariadb-gogs:
image: mariadb:10.1.22
environment:
- MYSQL_DATABASE=gogs
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_USER=gogs
- MYSQL_PASSWORD=gogs
volumes:
- mariadb-data:/var/lib/mysql
networks:
- ci-network
drone-server:
image: aelg/drone
volumes:
- drone-data:/var/lib/drone
environment:
- DRONE_OPEN=true
- DRONE_ADMIN=ael
- DRONE_SECRET=drone
- DRONE_GOGS=true
- DRONE_GOGS_URL=http://gogs:3000
- EXTERNAL_NETWORKS=ci_ci-network
deploy:
labels:
- "traefik.frontend.entryPoints=http"
- "traefik.docker.network=ci_ci-network"
- "traefik.enable=true"
- "traefik.port=8000"
- "traefik.frontend.rule=Host:drone.${DOMAIN}"
networks:
- ci-network
drone-agent:
image: aelg/drone
command: agent
depends_on: [ drone-server ]
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_SERVER=ws://drone-server:8000/ws/broker
- DRONE_SECRET=drone
networks:
- ci-network
registry:
image: registry:2.6
volumes:
- registry-data:/var/lib/registry
ports:
- 5000:5000
networks:
- ci-network
registry-ui:
image: konradkleine/docker-registry-frontend:v2
environment:
- "ENV_DOCKER_REGISTRY_HOST=registry"
- "ENV_DOCKER_REGISTRY_PORT=5000"
deploy:
labels:
- "traefik.frontend.entryPoints=http"
- "traefik.docker.network=ci_ci-network"
- "traefik.enable=true"
- "traefik.port=80"
- "traefik.frontend.rule=Host:registry-ui.${DOMAIN}"
networks:
- ci-network