-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
92 lines (85 loc) · 2.06 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3.7'
services:
db:
image: postgres
environment:
POSTGRES_USER: $DB_USER
POSTGRES_PASSWORD: $DB_PASSWORD
POSTGRES_DB: $DB_CORE
restart: unless-stopped
networks:
- db_net
volumes:
- db_vol:/var/lib/postgresql/data
ports:
- 5432:5432
restart: always
db_interface:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: $PGADMIN_EMAIL
PGADMIN_DEFAULT_PASSWORD: $PGADMIN_PASS
networks:
- db_net
- web_net
ports:
- 8080:80
depends_on:
- db
backend:
build: ./backend
restart: always
volumes:
- ./backend:/app/backend
- ./docs:/app/docs
environment:
DJANGO_SETTINGS_MODULE: $DJANGO_SETTINGS_MODULE
DEBUG: $DEBUG
DB_USER: $DB_USER
DB_PASSWORD: $DB_PASSWORD
DB_CORE: $DB_CORE
DB_HOST: $DB_HOST
DB_PORT: $DB_PORT
GOOGLE_EMAIL: $GOOGLE_EMAIL
GOOGLE_PASSWORD: $GOOGLE_PASSWORD
depends_on:
- db
networks:
- db_net
- web_net
frontend:
build: ./frontend
restart: unless-stopped
volumes:
- ./frontend:/app
- /app/node_modules
environment:
NODE_ENV: development
CHOKIDAR_USEPOLLING: 'true'
ports:
- 3000:3000
depends_on:
- backend
networks:
- web_net
nginx:
image: nginx:latest
ports:
- 8000:80
# - 3000:3000
volumes:
- ./config/nginx:/etc/nginx/conf.d/
depends_on:
- frontend
- backend
- db_interface
networks:
- web_net
networks:
web_net:
driver: bridge
db_net:
driver: bridge
volumes:
db_vol: