-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
77 lines (70 loc) · 1.51 KB
/
docker-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
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
version: '3.8'
services:
nginx:
build: ./nginx/
ports:
- 80:80
volumes:
- ./backend/static_files:/www/media
depends_on:
- backend
- frontend
networks:
- servers
backend:
build: ./backend/
env_file:
- ./backend/.env
ports:
- 7507:7507
networks:
- servers
- postgres_db
depends_on:
- db
volumes:
- ./backend/innopoints:/app/innopoints # To detect file changes. Dev only
- ./backend/static_files:/app/static_files
- type: bind
source: ./backend/db.sqlite3
target: /app/db.sqlite3
frontend:
build: ./frontend/
env_file:
- ./frontend/.env
networks:
- servers
ports:
- 3000:3000
- 10000:10000 # For Sapper something. Dev only
volumes:
- ./frontend/src:/app/src # To detect changes. Dev only
- ./frontend/static:/app/static # To detect changes. Dev only
db:
image: postgres:12.1-alpine
env_file:
- ./.env
networks:
- postgres_db
ports:
- 5432:5432 # For pgAdmin. Dev only
volumes:
- database:/var/lib/postgresql/data
swagger:
image: swaggerapi/swagger-ui
environment:
SWAGGER_JSON: /app/swagger.yaml
ports:
- 8080:8080
volumes:
- type: bind
source: ./backend/swagger.yaml
target: /app/swagger.yaml
read_only: true
networks:
servers:
driver: bridge
postgres_db:
driver: bridge
volumes:
database: