-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
74 lines (68 loc) · 1.14 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3'
volumes:
backend:
driver: local
driver_opts:
type: none
device: ./backend/app
o: bind
frontend:
driver: local
driver_opts:
type: none
device: ./frontend/front
o: bind
img:
driver: local
driver_opts:
type: none
device: ./backend/media/uploads
o: bind
networks:
network:
driver: bridge
services:
nginx:
container_name: nginx
build: ./nginx
ports:
- 443:443
restart: always
networks:
- network
database:
container_name: database
image: postgres:latest
restart: always
ports:
- 5435:5435
networks:
- network
env_file:
- .env
backend:
container_name: backend
build: ./backend
volumes:
- backend:/app
ports:
- 8000:8000
networks:
- network
restart: always
depends_on:
- database
env_file:
- .env
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- frontend:/usr/src/app
ports:
- 423:423
restart: always
networks:
- network