-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
80 lines (75 loc) · 1.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
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
depends_on:
machinegun:
condition: service_healthy
dominant:
condition: service_healthy
shumway:
condition: service_started
ports:
- "8022:8022"
command: /sbin/init
dominant:
image: ghcr.io/valitydev/dominant:sha-7e33b86
depends_on:
- machinegun
ports:
- "8022"
command: /opt/dominant/bin/dominant foreground
volumes:
- ./test/dominant/sys.config:/opt/dominant/releases/0.1/sys.config
healthcheck:
test: "/opt/dominant/bin/dominant ping"
interval: 5s
timeout: 1s
retries: 20
machinegun:
image: ghcr.io/valitydev/mg2:sha-8bbcd29
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: 10s
timeout: 5s
retries: 10
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
shumway-db:
image: docker.io/library/postgres:13.10
ports:
- "5432"
environment:
- POSTGRES_DB=shumway
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres