forked from gurkanucar/mqtt-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (60 loc) · 1.22 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
58
59
60
61
62
63
64
65
66
version: '3'
services:
redisdb:
image: "redis"
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- shared-net
app:
build:
context: ./backend/
dockerfile: Dockerfile
ports:
- "8081:8081"
environment:
SPRING_REDIS_HOST: redisdb
depends_on:
- redisdb
networks:
- shared-net
mosquitto:
image: eclipse-mosquitto
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./mosquitto/config/passFile:/mosquitto/config/passFile
- ./mosquitto/config/mosquitto.conf:/mosquitto/config/mosquitto.conf
#- ./mosquitto/log:/mosquitto/log
- ~/mosquitto/log:/mosquitto/log
networks:
- shared-net
fe:
build:
context: ./mqtt-cli-fe/
dockerfile: Dockerfile
volumes:
- './mqtt-cli-fe/:/app'
ports:
- 3000:3000
environment:
- REACT_APP_API_BASE_URL=http://${EC2_IP:-localhost}:8081
networks:
- shared-net
nginx:
image: nginx:alpine
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- fe
- app
networks:
- shared-net
networks:
shared-net:
driver: bridge