-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
49 lines (47 loc) · 882 Bytes
/
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
version: '3.9'
services:
frontend:
build:
context: frontend
volumes:
- ./frontend:/usr/src/app
- /usr/src/app/node_modules
ports:
- 8080:8080
environment:
- VITE_API_URL=/api/users
depends_on:
- backend
restart: unless-stopped
stdin_open: true
backend:
build:
context: backend
volumes:
- ./backend:/usr/src/app
- /usr/src/app/node_modules
ports:
- 3000:3000
environment:
- MONGODB_URI=mongodb://database:27017/dev
depends_on:
- database
restart: unless-stopped
database:
image: mongo:6
volumes:
- database:/data/db
ports:
- 27017:27017
restart: always
reverse-proxy:
build:
context: reverse-proxy
ports:
- 80:80
depends_on:
- backend
- frontend
restart: always
volumes:
database: