-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
120 lines (110 loc) · 3.1 KB
/
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: "3"
services:
nginx:
container_name: nginx
restart: unless-stopped
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- "5000:80"
ng-dev:
image: pp-ng-dev
container_name: pp-ng
profiles: ["dev"]
build:
context: ./frontend
dockerfile: Dockerfile.dev
command: ng serve --host 0.0.0.0 --poll 200 --disable-host-check
expose:
- "4200"
volumes:
- ./frontend:/app
ng-prod:
image: pp-ng-prod
container_name: pp-ng
restart: unless-stopped
profiles: ["prod"]
build:
context: ./frontend
dockerfile: Dockerfile.prod
dj-prod: &dj-prod
image: pp-dj-prod
container_name: pp-dj
build: backend
profiles: ["prod"]
restart: unless-stopped
environment:
- DJANGO_DEBUG=0
- DJANGO_SECRET_KEY=$DJANGO_SECRET_KEY
command: >
gunicorn -b 0.0.0.0:8000 wsgi:application
--pythonpath=parseport
--capture-output
--access-logfile /logs/access_log
--error-logfile /logs/error_log
expose:
- "8000"
volumes:
- ./backend:/src
# mounting the server's data folder under /data
- ../:/data
- ../../log/django:/logs
dj-dev:
<<: *dj-prod
image: pp-dj-dev
profiles: ["dev"]
environment:
- DJANGO_DEBUG=1
- DJANGO_SECRET_KEY=$DJANGO_SECRET_KEY
command: python manage.py runserver 0.0.0.0:8000
spindle-prod: &spindle-prod
image: pp-spindle-prod
container_name: pp-spindle
build:
context: ../spindle-server
profiles: ["prod"]
restart: unless-stopped
command: >
gunicorn -w 1 -b 0.0.0.0:32768 'app:create_app()'
--timeout 600
--capture-output
--access-logfile /logs/access_log
--error-logfile /logs/error_log
expose:
- "32768"
volumes:
- ../../log/spindle:/logs
spindle-dev:
<<: *spindle-prod
image: pp-spindle-dev
profiles: ["dev"]
command: flask run --host 0.0.0.0 --port 32768
ports:
- "32768:32768"
latex-prod: &latex-prod
image: pp-latex-prod
container_name: pp-latex
build:
context: ../latex-service
profiles: ["prod"]
restart: unless-stopped
command: >
gunicorn -w 1 -b 0.0.0.0:32769 'app:app'
--capture-output
--access-logfile /logs/access_log
--error-logfile /logs/error_log
expose:
- "32769"
volumes:
- ../../log/latex:/logs
latex-dev:
<<: *latex-prod
image: pp-latex-dev
profiles: ["dev"]
command: flask run --host 0.0.0.0 --port 32769
ports:
- "32769:32769"
networks:
parseport:
driver: bridge