-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.prod.yaml
61 lines (55 loc) · 1.03 KB
/
docker-compose.prod.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
50
51
52
53
54
55
56
57
58
59
60
61
version: '3.3'
services:
nginx:
build: ./nginx/
image: innopoints-nginx
ports:
- 80:80
volumes:
- ./backend/static_files:/www/media
depends_on:
- backend
- frontend
networks:
- servers
backend:
build:
context: ./backend/
dockerfile: Dockerfile.prod
image: innopoints-backend
env_file:
- ./backend/.env
networks:
- servers
- postgres_db
volumes:
- ./backend/static_files:/app/static_files
- type: bind
source: ./backend/db.sqlite3
target: /app/db.sqlite3
depends_on:
- db
frontend:
build:
context: ./frontend/
dockerfile: Dockerfile.prod
image: innopoints-frontend
env_file:
- ./frontend/.env
networks:
- servers
db:
image: postgres:12.1-alpine
env_file:
- ./.env
networks:
- postgres_db
volumes:
- database:/var/lib/postgresql/data
networks:
servers:
driver: bridge
postgres_db:
driver: bridge
volumes:
database: