-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
146 lines (138 loc) · 3.76 KB
/
compose.yaml
File metadata and controls
146 lines (138 loc) · 3.76 KB
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
services:
testrunner:
image: $DEV_IMAGE_TAG
build:
dockerfile: Dockerfile.dev
context: .
args:
OTP_VERSION: $OTP_VERSION
THRIFT_VERSION: $THRIFT_VERSION
volumes:
- .:$PWD
hostname: fistful-server
depends_on:
db:
condition: service_healthy
dmt:
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
dmt:
image: ghcr.io/valitydev/dominant-v2:sha-5823897
command: /opt/dmt/bin/dmt foreground
healthcheck:
test: "/opt/dmt/bin/dmt ping"
interval: 5s
timeout: 3s
retries: 12
depends_on:
db:
condition: service_healthy
environment:
DMT_KAFKA_ENABLED: "0"
volumes:
- ./test/dmt/sys.config:/opt/dmt/releases/0.1/sys.config
limiter:
image: ghcr.io/valitydev/limiter:sha-2a3f78d
command: /opt/limiter/bin/limiter foreground
depends_on:
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:
db:
condition: service_healthy
entrypoint:
- java
- -Xmx512m
- -jar
- /opt/shumway/shumway.jar
- --spring.datasource.url=jdbc:postgresql://db:5432/shumway
- --spring.datasource.username=shumway
- --spring.datasource.password=postgres
- --management.endpoint.metrics.enabled=false
- --management.endpoint.prometheus.enabled=false
healthcheck:
disable: true
liminator:
image: ghcr.io/valitydev/liminator:sha-e284ad2
restart: unless-stopped
entrypoint:
- java
- -Xmx512m
- -jar
- /opt/liminator/liminator.jar
- --spring.datasource.url=jdbc:postgresql://db:5432/liminator
- --spring.datasource.username=liminator
- --spring.datasource.password=postgres
- --service.skipExistedHoldOps=false
depends_on:
db:
condition: service_healthy
healthcheck:
test: "curl http://localhost:8022/actuator/health"
interval: 5s
timeout: 1s
retries: 20
party-management:
image: ghcr.io/valitydev/party-management:sha-53d780a
command: /opt/party-management/bin/party-management foreground
depends_on:
db:
condition: service_healthy
dmt:
condition: service_started
shumway:
condition: service_started
healthcheck:
test: "/opt/party-management/bin/party-management ping"
interval: 10s
timeout: 5s
retries: 10
volumes:
- ./test/party-management/sys.config:/opt/party-management/releases/0.1/sys.config
bender:
image: ghcr.io/valitydev/bender:sha-bc14c2e
command: /opt/bender/bin/bender foreground
depends_on:
db:
condition: service_healthy
healthcheck:
test: "/opt/bender/bin/bender ping"
interval: 10s
timeout: 5s
retries: 10
volumes:
- ./test/bender/sys.config:/opt/bender/releases/1.0.0/sys.config
db:
image: postgres:15-bookworm
command: -c 'max_connections=1000'
environment:
POSTGRES_MULTIPLE_DATABASES: "fistful,bender,dmt,party_management,shumway,liminator"
POSTGRES_PASSWORD: "postgres"
ports:
- "5432:5432"
volumes:
- ./test/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U fistful"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped