-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.13 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
version: "3.8"
services:
mqtt_broker:
image: eclipse-mosquitto:latest
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
ports:
- "1883:1883"
db:
image: postgres:latest
environment:
POSTGRES_PASSWORD: lozinka123
POSTGRES_DB: aquapod
volumes:
- ./data/db:/var/lib/postgresql/data
ports:
- "5432:5432"
http_fastapi:
build:
context: ./http_fastapi
dockerfile: Dockerfile
env_file:
- ./http_fastapi/.env
volumes:
- ./http_fastapi/app:/code/app
ports:
- "8000:80"
depends_on:
- db
- mqtt_broker
mqtt_fastmqtt:
build:
context: ./mqtt_fastmqtt
dockerfile: Dockerfile
volumes:
- ./mqtt_fastmqtt/app:/code/app
ports:
- "8001:80"
environment:
- WAIT_HOSTS=mqtt_broker:1883
- WAIT_TIMEOUT=300 # Maximum wait time in seconds
depends_on:
- mqtt_broker
arduino_client:
build:
context: ./arduino_client
dockerfile: Dockerfile
volumes:
- ./arduino_client/app:/code/app
ports:
- "8002:80"
depends_on:
- mqtt_broker