-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
47 lines (47 loc) · 1.02 KB
/
docker-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
version: "3.5"
services:
timescaledb:
image: "timescale/timescaledb:1.7.4-pg12"
ports:
- "54321:5432"
environment:
- POSTGRES_DB=sepet
- POSTGRES_USER=sepet
- POSTGRES_PASSWORD=sepet
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
redis:
image: "redis:6-alpine"
ports:
- "9379:6379"
collector:
build:
context: .
dockerfile: "collector.Dockerfile"
ports:
- "9000:9000"
environment:
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
depends_on:
- redis
server:
build:
context: .
dockerfile: "server.Dockerfile"
ports:
- "8081:8081"
environment:
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_R2DBC_URL=r2dbc:postgresql://timescaledb:5432/sepet
depends_on:
- redis
- timescaledb
simulator:
build:
context: .
dockerfile: "simulator.Dockerfile"
depends_on:
- collector
command: '-n 50 -h collector -p 9000'