-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
100 lines (89 loc) · 1.88 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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
# docker-compose.yml
version: '3'
services:
frontend:
image: sinamics/ae-iot-frontend
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
networks:
- iot
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Oslo
volumes:
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
ports:
- '3000:3000'
depends_on:
- backend
backend:
image: sinamics/ae-iot-backend
container_name: backend
build:
context: ./server
dockerfile: Dockerfile
networks:
- iot
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Oslo
volumes:
- /etc/localtime:/etc/localtime:ro
- ./server/certs:/app/certs:ro
# - ./storage/backend/:/app
restart: unless-stopped
ports:
- '5000:5000'
depends_on:
- redis
nginx:
image: nginx:latest
container_name: nginx
networks:
- iot
ports:
- 80:80
restart: unless-stopped
environment:
- TZ=Europe/Oslo
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- /etc/localtime:/etc/localtime:ro
redis:
image: redis:alpine
container_name: redis
hostname: redis
networks:
- iot
ports:
- 6379
restart: unless-stopped
environment:
- TZ=Europe/Oslo
volumes:
- ./storage/redis/:/data
- /etc/localtime:/etc/localtime:ro
mosquitto:
image: eclipse-mosquitto
container_name: mosquitto
networks:
- iot
volumes:
- ./storage/mosquitto/certs:/mosquitto/certs
- ./storage/mosquitto/config:/mosquitto/config
- ./storage/mosquitto/data:/mosquitto/data
- ./storage/mosquitto/log:/mosquitto/log
- /etc/localtime:/etc/localtime:ro
ports:
- 8884:8884
- 9001:9001
volumes:
iot-data:
networks:
iot:
driver: bridge