-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
71 lines (67 loc) · 1.76 KB
/
compose.yaml
File metadata and controls
71 lines (67 loc) · 1.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
services:
testrunner:
image: $DEV_IMAGE_TAG
build:
dockerfile: Dockerfile.dev
context: .
args:
OTP_VERSION: $OTP_VERSION
THRIFT_VERSION: $THRIFT_VERSION
volumes:
- .:$PWD
hostname: $SERVICE_NAME
working_dir: $PWD
command: /sbin/init
depends_on:
dmt:
condition: service_healthy
liminator:
condition: service_healthy
dmt:
image: ghcr.io/valitydev/dominant-v2:sha-815385c
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
volumes:
- ./test/dmt/sys.config:/opt/dmt/releases/0.1/sys.config
liminator:
image: ghcr.io/valitydev/liminator:sha-48e1a4a
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
db:
image: postgres:15-bookworm
command: -c 'max_connections=1000'
environment:
POSTGRES_MULTIPLE_DATABASES: "dmt,shumway,liminator"
POSTGRES_PASSWORD: "postgres"
volumes:
- ./test/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U liminator"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped