-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.04 KB
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
version: "3"
services:
backend:
container_name: rbf_backend
restart: unless-stopped
build:
context: backend
dockerfile: Dockerfile
volumes:
- ./backend:/app
- /app/node_modules
ports:
- "3001:3000"
depends_on:
- mongo
frontend:
container_name: rbf_frontend
restart: always
build:
context: frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "3000:3000"
mongo:
image: mongo
volumes:
- ./database/mongo-entrypoint:/docker-entrypoint-initdb.d:ro
- ./mongo_data:/data/db
container_name: rbf_mongodb
restart: unless-stopped
ports:
- 27017:27017
env_file:
- ./database/.env
command: mongod
auth:
container_name: rbf_auth
restart: unless-stopped
build:
context: auth
dockerfile: Dockerfile
volumes:
- ./auth:/app
- /app/node_modules
ports:
- "5555:5555"
depends_on:
- mongo
volumes:
mongo_data: