-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1.06 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
version: '3.3'
services:
frontend:
image: "amreo/tse-frontend:proxy-pass"
ports:
- "80"
networks:
- webnet
depends_on:
- backend
backend:
image: "amreo/tse-backend:latest"
ports:
- "8000"
networks:
- webnet
- backend
environment:
- ROCKET_REDIS_URL=redis://redis
- ROCKET_ENV=staging
- ROCKET_PORT=8000
depends_on:
- redis
temperature-collector:
image: "amreo/tse-temperature-collector:latest"
ports:
- "8886/udp"
networks:
- backend
- sensors
environment:
- TEMPERATURECOLLECTOR_LOG_DATAGRAMS=true
- TEMPERATURECOLLECTOR_REDIS_URL=redis://redis
depends_on:
- redis
redis:
image: "redis:alpine"
networks:
- backend
fake-sensor:
image: "amreo/tse-fake-sensor:latest"
networks:
- sensors
deploy:
mode: replicated
replicas: 5
command: python ./fake-sensor.py --host temperature-collector
depends_on:
- temperature-collector
networks:
webnet:
backend:
sensors: