-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
52 lines (51 loc) · 927 Bytes
/
docker-compose-dev.yml
File metadata and controls
52 lines (51 loc) · 927 Bytes
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
version: "3.9"
services:
# database
mongo_local:
image: mongo:4.4.6
restart: always
ports:
- "27017:27017"
networks:
- fm-app
volumes:
- mongo_local:/data/db
# backend
api:
image: api
build: ./shelly-fm-be/
privileged: true
restart: unless-stopped
ports:
- "5050:5050"
- "2022:2022"
networks:
- fm-app
depends_on:
- mongo_local
volumes:
- ./shelly-fm-be/:/usr/src/app
- /usr/src/app/node_modules
- /var/run/dbus:/var/run/dbus
# frontend
web:
image: web
build: ./shelly-fm-fe/
stdin_open: true
restart: unless-stopped
ports:
- "3000:3000"
networks:
- fm-app
volumes:
- ./shelly-fm-fe/:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- api
# connect all networks
networks:
fm-app:
driver: bridge
volumes:
mongo_local:
driver: local