-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (49 loc) · 976 Bytes
/
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
version: "3"
#-----Application-----
services:
frontend:
container_name: react
build: frontend
command: ["npm", "start"]
restart: always
environment:
- NODE_ENV=development
volumes:
- ./frontend/src:/frontend/src
ports:
- "3000:3000"
depends_on:
- backend
backend:
container_name: backend
ports:
- "5000:80"
build: backend
restart: always
environment:
- FLASK_ENV=development
env_file:
- ./backend/.env
volumes:
- ./backend:/backend
depends_on:
- db
db:
container_name: mhaDb
image: postgres
restart: always
env_file:
- ./backend/.env
volumes:
- userdatabase:/var/lib/postgresql/data
#-----Proxy-----
nginx:
container_name: nginx
image: nginx:alpine
restart: always
ports:
- "8000:80"
volumes:
- ./nginx/nginx-dev.conf:/etc/nginx/conf.d/default.conf:ro
volumes:
userdatabase: