-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.testing.yml
72 lines (66 loc) · 1.83 KB
/
docker-compose.testing.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
64
65
66
67
68
69
70
71
72
# For detailed information about docker-compose visit https://docs.docker.com/compose/
# To start a simple configuration of the smack stack in the local machine run:
# docker-compose -f docker-compose.yml -f docker-compose.testing.yml up -d
version: '2.1'
services:
kafka:
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
seed:
image: eciavatta/smack-template:latest
command: -l INFO -a seed:5000 seed
environment:
HOST: seed
PORT_REMOTE: 5000
PORT_BIND_REMOTE: 5000
migrate:
image: eciavatta/smack-template:latest
command: migrate --create-keyspace -l INFO -c cassandra:9042
depends_on:
cassandra:
condition: service_healthy
frontend:
image: eciavatta/smack-template:latest
command: -d false -l INFO -a seed:5000 frontend
depends_on:
seed:
condition: service_started
environment:
HOST: frontend
PORT_REMOTE: 5001
PORT_BIND_REMOTE: 5001
PORT_HTTP: 8080
ports:
- "8080:8080"
backend:
image: eciavatta/smack-template:latest
command: -l INFO -a seed:5000 -c cassandra:9042 -k kafka:9092 backend
depends_on:
cassandra:
condition: service_healthy
kafka:
condition: service_healthy
seed:
condition: service_started
migrate:
condition: service_started
environment:
HOST: backend
PORT_REMOTE: 5002
PORT_BIND_REMOTE: 5002
service:
image: eciavatta/smack-template:latest
command: -l INFO -a seed:5000 -c cassandra:9042 -k kafka:9092 service
depends_on:
cassandra:
condition: service_healthy
kafka:
condition: service_healthy
seed:
condition: service_started
migrate:
condition: service_started
environment:
HOST: service
PORT_REMOTE: 5003
PORT_BIND_REMOTE: 5003