-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
99 lines (94 loc) · 2.66 KB
/
docker-compose.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
99
version: "3"
services:
traefik:
image: traefik:${TRAEFIK_VERSION}
restart: always
ports:
- 80:80
- 443:443
networks:
- internal
- external
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik/traefik.toml:/traefik.toml
- ./traefik/acme.json:/acme.json
container_name: traefik
gitea:
image: gitea/gitea:${GITEA_VERSION}
environment:
- USER_UID=1000
- USER_GID=1000
restart: always
networks:
- external
depends_on:
- traefik
volumes:
- ./gitea:/data
labels:
- "traefik.docker.network=web"
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Host:${GITEA_SUB_DOMAIN}.${ROOT_DOMAIN}"
- "traefik.basic.port=3000"
- "traefik.basic.protocol=http"
- "traefik.admin.frontend.rule=Host:admin-${GITEA_SUB_DOMAIN}.${ROOT_DOMAIN}"
- "traefik.admin.protocol=https"
- "traefik.admin.port=9443"
container_name: gitea
drone:
image: drone/drone:${DRONE_VERSION}
networks:
- internal
- external
ports:
- 9000
volumes:
- ./drone:/var/lib/drone
- /var/run/docker.sock:/var/run/docker.sock
restart: always
depends_on:
- gitea
environment:
- DRONE_GITEA_SERVER=https://${GITEA_SUB_DOMAIN}.${ROOT_DOMAIN}
- DRONE_GIT_ALWAYS_AUTH=false
- DRONE_RUNNER_CAPACITY=2
- DRONE_ADMIN=${DRONE_ADMIN}
- DRONE_SERVER_HOST=${DRONE_SUB_DOMAIN}.${ROOT_DOMAIN}
- DRONE_SERVER_PROTO=https
- DRONE_TLS_AUTOCERT=false
labels:
- "traefik.docker.network=cicd"
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Host:${DRONE_SUB_DOMAIN}.${ROOT_DOMAIN}"
- "traefik.basic.port=80"
- "traefik.basic.protocol=http"
- "traefik.admin.frontend.rule=Host:admin-${DRONE_SUB_DOMAIN}.${ROOT_DOMAIN}"
- "traefik.admin.protocol=https"
- "traefik.admin.port=9443"
container_name: drone
vscode:
image: codercom/code-server:${VSCODE_VERSION}
command: --allow-http --password=${VSCODE_PASSWORD}
networks:
- external
volumes:
- ./vscode:/root/project
restart: always
depends_on:
- traefik
labels:
- "traefik.docker.network=cicd"
- "traefik.enable=true"
- "traefik.basic.frontend.rule=Host:${VSCODE_SUB_DOMAIN}.${ROOT_DOMAIN}"
- "traefik.basic.port=8443"
- "traefik.basic.protocol=http"
- "traefik.admin.frontend.rule=Host:admin-${VSCODE_SUB_DOMAIN}.${ROOT_DOMAIN}"
- "traefik.admin.protocol=https"
- "traefik.admin.port=9443"
container_name: vscode
networks:
external:
external: true
internal:
external: false