-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
152 lines (143 loc) · 3.96 KB
/
compose.yaml
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
services:
testrunner:
image: $DEV_IMAGE_TAG
build:
dockerfile: Dockerfile.dev
context: .
args:
OTP_VERSION: $OTP_VERSION
THRIFT_VERSION: $THRIFT_VERSION
volumes:
- .:$PWD
hostname: hellgate
depends_on:
machinegun:
condition: service_healthy
dominant:
condition: service_healthy
party-management:
condition: service_healthy
limiter:
condition: service_healthy
shumway:
condition: service_started
bender:
condition: service_healthy
working_dir: $PWD
command: /sbin/init
dominant:
image: ghcr.io/valitydev/dominant:sha-fae8726
command: /opt/dominant/bin/dominant foreground
depends_on:
machinegun:
condition: service_healthy
healthcheck:
test: "/opt/dominant/bin/dominant ping"
interval: 10s
timeout: 5s
retries: 10
machinegun:
image: ghcr.io/valitydev/mg2:sha-436f723
command: /opt/machinegun/bin/machinegun foreground
volumes:
- ./test/machinegun/config.yaml:/opt/machinegun/etc/config.yaml
- ./test/machinegun/cookie:/opt/machinegun/etc/cookie
healthcheck:
test: "/opt/machinegun/bin/machinegun ping"
interval: 5s
timeout: 1s
retries: 20
bender:
image: ghcr.io/valitydev/bender:sha-a3b227f
command: /opt/bender/bin/bender foreground
depends_on:
machinegun:
condition: service_healthy
healthcheck:
test: "/opt/bender/bin/bender ping"
interval: 10s
timeout: 5s
retries: 10
limiter:
image: ghcr.io/valitydev/limiter:sha-2271094
command: /opt/limiter/bin/limiter foreground
depends_on:
machinegun:
condition: service_healthy
shumway:
condition: service_started
liminator:
condition: service_healthy
healthcheck:
test: "/opt/limiter/bin/limiter ping"
interval: 5s
timeout: 1s
retries: 20
shumway:
image: ghcr.io/valitydev/shumway:sha-658587c
restart: unless-stopped
depends_on:
- shumway-db
ports:
- "8022"
entrypoint:
- java
- -Xmx512m
- -jar
- /opt/shumway/shumway.jar
- --spring.datasource.url=jdbc:postgresql://shumway-db:5432/shumway
- --spring.datasource.username=postgres
- --spring.datasource.password=postgres
- --management.endpoint.metrics.enabled=false
- --management.endpoint.prometheus.enabled=false
healthcheck:
disable: true
liminator:
image: ghcr.io/valitydev/liminator:sha-fc6546f
restart: unless-stopped
entrypoint:
- java
- -Xmx512m
- -jar
- /opt/liminator/liminator.jar
- --spring.datasource.url=jdbc:postgresql://liminator-db:5432/liminator
- --spring.datasource.username=vality
- --spring.datasource.password=postgres
- --spring.flyway.url=jdbc:postgresql://liminator-db:5432/liminator
- --spring.flyway.username=vality
- --spring.flyway.password=postgres
- --service.skipExistedHoldOps=false
depends_on:
- liminator-db
healthcheck:
test: "curl http://localhost:8022/actuator/health"
interval: 5s
timeout: 1s
retries: 20
liminator-db:
image: docker.io/library/postgres:13.10
environment:
- POSTGRES_DB=liminator
- POSTGRES_USER=vality
- POSTGRES_PASSWORD=postgres
party-management:
image: ghcr.io/valitydev/party-management:sha-b78d0f5
command: /opt/party-management/bin/party-management foreground
depends_on:
machinegun:
condition: service_healthy
dominant:
condition: service_started
shumway:
condition: service_started
healthcheck:
test: "/opt/party-management/bin/party-management ping"
interval: 10s
timeout: 5s
retries: 10
shumway-db:
image: docker.io/library/postgres:13.10
environment:
- POSTGRES_DB=shumway
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres