-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yaml
More file actions
193 lines (180 loc) · 5.3 KB
/
compose.yaml
File metadata and controls
193 lines (180 loc) · 5.3 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
services:
nginx:
container_name: pp-nginx
restart: unless-stopped
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./vulcan-static:/usr/share/nginx/html:ro
ports:
- "5001:80"
ng-dev:
image: pp-ng-dev
container_name: pp-ng
restart: no
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
# Shadow mount node_modules to prevent conflicts between host and container dependencies.
- /app/node_modules
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
restart: no
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
restart: no
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
restart: no
profiles: ["dev"]
command: flask run --host 0.0.0.0 --port 32769
ports:
- "32769:32769"
mg-parser-prod: &mg-parser-prod
image: pp-mg-parser-prod
container_name: pp-mg-parser
build:
context: ../mg-parser-server
profiles: ["prod"]
restart: unless-stopped
environment:
- FLASK_DEBUG=0
- MG_PARSER_SECRET_KEY=$MG_PARSER_SECRET_KEY
command: >
gunicorn -w 1 -b 0.0.0.0:32770 'app:create_app()'
--capture-output
--access-logfile /logs/access_log
--error-logfile /logs/error_log
expose:
- "32770"
volumes:
- ../../log/mg-parser:/logs
mg-parser-dev:
<<: *mg-parser-prod
image: pp-mg-parser-dev
restart: no
profiles: ["dev"]
environment:
- FLASK_DEBUG=1
- MG_PARSER_SECRET_KEY=$MG_PARSER_SECRET_KEY
command: flask run --host 0.0.0.0 --port 32770
ports:
- "32770:32770"
vulcan-prod: &vulcan-prod
image: pp-vulcan-prod
container_name: pp-vulcan
build:
context: ../vulcan-parseport
profiles: ["prod"]
restart: unless-stopped
environment:
- VULCAN_DEBUG=0
- VULCAN_SECRET_KEY=$VULCAN_SECRET_KEY
command: >
gunicorn -k eventlet -w 1 -b 0.0.0.0:32771 'app:create_app()'
--capture-output
--access-logfile /logs/access_log
--error-logfile /logs/error_log
expose:
- "32771"
volumes:
- ../../log/vulcan:/logs
vulcan-dev:
<<: *vulcan-prod
image: pp-vulcan-dev
restart: no
profiles: ["dev"]
environment:
- VULCAN_DEBUG=1
- VULCAN_SECRET_KEY=$VULCAN_SECRET_KEY
command: >
gunicorn -k eventlet -w 1 -b 0.0.0.0:32771 'app:create_app()'
--reload
ports:
- "32771:32771"
volumes:
- ../vulcan-parseport/app:/app
networks:
parseport:
driver: bridge