-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (88 loc) · 2.05 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
version: '3.8'
services:
jaeger:
network_mode: "bridge"
image: jaegertracing/all-in-one:1.8
# XXX uncomment if you need to debug your jaeger setup
command: --memory.max-traces 10000
ports:
- 16686:16686
postgres:
network_mode: "bridge"
image: postgres:11
environment:
- "POSTGRES_USER=tinyci"
- "POSTGRES_PASSWORD=tinyci"
- "POSTGRES_DB=tinyci"
volumes:
- "./.db:/var/lib/postgresql/data"
react:
network_mode: "bridge"
image: tinyci/ui:latest
command: caddy run -config /Caddyfile
ports:
- 3000:3000
hooksvc:
network_mode: "bridge"
image: tinyci/release:main
command: tinyci -c /hooksvc.yaml service hooksvc
volumes:
- "./hooksvc.yaml:/hooksvc.yaml"
links:
- tinyci
depends_on:
- tinyci
tinyci:
network_mode: "bridge"
image: tinyci/release:main
command: tinyci -c /services.yaml launch
environment:
- "JAEGER_AGENT_HOST=jaeger"
- "USE_JAEGER=1"
- "DEBUG=1"
- "GIN_MODE=release"
volumes:
- "./services.yaml:/services.yaml"
- "./.logs:/var/tinyci/logs"
links:
- jaeger
- postgres
depends_on:
- postgres
migrator:
network_mode: "bridge"
image: tinyci/release:main
command: migrator -t postgres -u tinyci -d tinyci -p tinyci /usr/local/bin/migrations/tinyci
links:
- postgres
depends_on:
- postgres
httpmux:
network_mode: "bridge"
image: caddy:2.3.0
command: caddy run -config /Caddyfile
ports:
- 443:443
volumes:
- "./Caddyfile:/Caddyfile"
links:
- react
- tinyci
- hooksvc
depends_on:
- react
- tinyci
- hooksvc
runner:
network_mode: "bridge"
privileged: true
image: tinyci/runners:latest
command: "/usr/local/bin/overlay-runner -c /runner.yaml"
volumes:
- "./runner.yaml:/runner.yaml"
- "./.runner:/var/db/git:shared,rw"
- "./.runner-overlay:/var/db/overlay:shared,rw"
links:
- tinyci
depends_on:
- tinyci