generated from niqzart/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
124 lines (116 loc) · 2.63 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
services:
map:
image: zubrailx/cws-map-runner:debug-latest
ports:
- "6000:8000"
mongo:
image: mongo:6.0.5-jammy
restart: always
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- type: tmpfs
target: /data/db
mongo-express:
depends_on:
- mongo
image: mongo-express
restart: always
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
mosquitto:
image: eclipse-mosquitto:2.0.5
ports:
- "1883:1883"
- "9001:9001"
volumes:
- mosquitto-data:/mosquitto/data
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
api:
depends_on:
- mongo
- mosquitto
build:
context: .
dockerfile: Dockerfile
args:
FOLDER: app
image: iot-mwhs/spheraphore
restart: always
command:
- "--reload"
ports:
- "8000:8000"
volumes:
- ./backend/common:/backend/common
- ./backend/app:/backend/app
environment:
WATCHFILES_FORCE_POLLING: true
MONGODB_URL: mongodb://root:example@mongo:27017/
MOSQUITTO_HOST: mosquitto
echo:
profiles:
- echo
depends_on:
- mosquitto
build:
context: .
dockerfile: Dockerfile
args:
FOLDER: devices
image: iot-mwhs/spheraphore
restart: always
entrypoint: python -m devices.echo
volumes:
- ./backend/common:/backend/common
- ./backend/devices:/backend/devices
environment:
PYTHONBUFFERED: true
MOSQUITTO_HOST: mosquitto
temperature:
profiles:
- temperature
depends_on:
- mosquitto
build:
context: .
dockerfile: Dockerfile
args:
FOLDER: devices
image: iot-mwhs/spheraphore
restart: always
entrypoint: python -m devices.temperature
volumes:
- ./backend/common:/backend/common
- ./backend/devices:/backend/devices
environment:
PYTHONBUFFERED: true
MOSQUITTO_HOST: mosquitto
illumination:
profiles:
- illumination
depends_on:
- mosquitto
build:
context: .
dockerfile: Dockerfile
args:
FOLDER: devices
image: iot-mwhs/spheraphore
restart: always
entrypoint: python -m devices.illumination
volumes:
- ./backend/common:/backend/common
- ./backend/devices:/backend/devices
environment:
PYTHONBUFFERED: true
MOSQUITTO_HOST: mosquitto
volumes:
mosquitto-data: