-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
87 lines (82 loc) · 1.96 KB
/
docker-compose.yml
File metadata and controls
87 lines (82 loc) · 1.96 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
services:
api:
build:
context: .
dockerfile: deployments/docker/api.Dockerfile
container_name: event-analytics-api
ports:
- "8080:8080"
env_file:
- .env
depends_on:
clickhouse:
condition: service_healthy
elasticmq:
condition: service_healthy
networks:
- event-analytics-network
restart: unless-stopped
consumer:
build:
context: .
dockerfile: deployments/docker/consumer.Dockerfile
container_name: event-analytics-consumer
env_file:
- .env
depends_on:
clickhouse:
condition: service_healthy
elasticmq:
condition: service_healthy
networks:
- event-analytics-network
restart: unless-stopped
clickhouse:
image: clickhouse/clickhouse-server:latest
container_name: event-analytics-clickhouse
ports:
- "8123:8123" # HTTP interface
- "9000:9000" # Native client
environment:
- CLICKHOUSE_DB=events
env_file:
- .env
volumes:
- clickhouse-data:/var/lib/clickhouse
- clickhouse-logs:/var/log/clickhouse-server
ulimits:
nofile:
soft: 262144
hard: 262144
networks:
- event-analytics-network
restart: unless-stopped
healthcheck:
test: ["CMD", "clickhouse-client", "--query", "SELECT 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
elasticmq:
image: softwaremill/elasticmq:latest
container_name: event-analytics-elasticmq
ports:
- "9324:9324" # API Server
- "9325:9325" # Web UI
volumes:
- ./elasticmq.conf:/opt/elasticmq.conf:ro
networks:
- event-analytics-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9325/"]
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
networks:
event-analytics-network:
driver: bridge
volumes:
clickhouse-data:
clickhouse-logs: