-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (56 loc) · 1.33 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
56
57
58
59
60
61
62
63
version: "3"
networks:
default:
name: retrospect
services:
cassandra:
image: cassandra:latest
container_name: cassandra
restart: always
ports: ["9042:9042"]
healthcheck:
test:
[
"CMD",
"cqlsh",
"-u cassandra",
"-p cassandra",
"-e describe keyspaces",
]
interval: 15s
timeout: 10s
retries: 10
cassandra-load-keyspace:
container_name: cassandra-load-keyspace
image: cassandra:latest
depends_on:
cassandra:
condition: service_healthy
volumes:
- ./data.cql:/data.cql
command: /bin/bash -c "echo loading cassandra keyspace && cqlsh cassandra -f /data.cql"
restart: on-failure
cleaner:
container_name: retrospect-cleaner
image: teamretrospect/cleaner:latest
depends_on:
cassandra:
condition: service_healthy
tty: true
restart: always
api:
depends_on: ["cassandra"]
container_name: retrospect-api
image: teamretrospect/api:latest
ports: ["80:80"]
restart: always
server:
depends_on: ["api"]
container_name: retrospect-server
image: teamretrospect/server:latest
ports: ["5200:5200"]
client:
depends_on: ["server"]
container_name: retrospect-client
image: teamretrospect/client:latest
ports: ["3200:3200"]