-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
55 lines (52 loc) · 1.58 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
version: '3'
services:
go-app:
image: golang:1.22.3-alpine
container_name: go-app
volumes:
- ./:/app
depends_on:
- carepet-scylla1
working_dir: /app
command: sh -c "
go build ./cmd/migrate &&
go build ./cmd/sensor &&
go build ./cmd/loadtest &&
go build ./cmd/server &&
tail -F anything
"
expose:
- '8000'
carepet-scylla1:
image: scylladb/scylla
container_name: carepet-scylla1
command: ['--smp=1', '--memory=1GB', '--overprovisioned=1', '--developer-mode=1']
ports:
- '9042:9042'
environment:
- 'SCYLLA_JMX_ADDR=-ja 0.0.0.0'
- 'SCYLLA_JMX_REMOTE=-r'
expose:
- '7199'
carepet-scylla2:
image: scylladb/scylla
container_name: carepet-scylla2
command: ['--smp=1', '--memory=1GB', '--overprovisioned=1', '--developer-mode=1', "--seeds=carepet-scylla1"]
ports:
- '9043:9042'
environment:
- 'SCYLLA_JMX_ADDR=-ja 0.0.0.0'
- 'SCYLLA_JMX_REMOTE=-r'
expose:
- '7199'
carepet-scylla3:
image: scylladb/scylla
container_name: carepet-scylla3
command: ['--smp=1', '--memory=1GB', '--overprovisioned=1', '--developer-mode=1', "--seeds=carepet-scylla1"]
ports:
- '9044:9042'
environment:
- 'SCYLLA_JMX_ADDR=-ja 0.0.0.0'
- 'SCYLLA_JMX_REMOTE=-r'
expose:
- '7199'