-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
58 lines (54 loc) · 1.14 KB
/
Copy pathcompose.yaml
File metadata and controls
58 lines (54 loc) · 1.14 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
services:
server:
build: ./agv_server
container_name: django_app
ports:
- 8000:8000
volumes:
- ./agv_server:/app
depends_on:
- db
- redis
- mosquitto
env_file:
- .env.prod
environment:
- MQTT_BROKER=mosquitto # Use the service name in Docker
db:
image: postgres:17
container_name: postgres_db
volumes:
- postgres_db:/var/lib/postgresql/data/
env_file:
- .env.prod
redis:
image: redis:7-alpine
container_name: redis
ports:
- 6379:6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
client:
build: ./frontend
container_name: react_app
ports:
- "8080:80"
depends_on:
server:
condition: service_started
mosquitto:
image: eclipse-mosquitto:2
container_name: mosquitto
ports:
- "1883:1883" # MQTT port
- "9001:9001" # WebSocket port
volumes:
- ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf
- mosquitto_data:/mosquitto/data
restart: always
volumes:
postgres_db:
mosquitto_data: