-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
75 lines (69 loc) · 1.23 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
version: '3.8'
services:
mongoexpress:
container_name: mongoexpress
restart:
always
image: 'mongo-express'
ports:
- "8081:8081"
depends_on:
- mongodb
env_file:
- .env
networks:
- local
mongodb:
container_name: mongodb
restart:
always
image: 'bitnami/mongodb:latest'
ports:
- "27017:27017"
volumes:
- ./docker/bitnami:/bitnami/mongodb
env_file:
- .env
networks:
- local
server:
container_name: server
restart:
always
build:
context: ./
dockerfile: ./docker/server/Dockerfile
networks:
- local
volumes:
- "./server:/usr/src/app"
- "./uploads:/uploads"
depends_on:
- mongodb
env_file:
- .env
expose:
- "8000"
ports:
- "8000:8000"
command: "npm run dev"
frontend:
container_name: frontend
restart:
always
build:
context: ./
dockerfile: ./docker/frontend/Dockerfile
ports:
- '9001:9001'
volumes:
- "./frontend:/usr/src/app"
- "./uploads:/uploads"
depends_on:
- server
- mongodb
networks:
- local
command: "npm run docker-dev"
networks:
local: