forked from prometheus/client_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose-uwsgi.yml
More file actions
24 lines (21 loc) · 810 Bytes
/
compose-uwsgi.yml
File metadata and controls
24 lines (21 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: "2.0"
services:
dev_flask_app:
image: dev_flask_app:latest
build:
dockerfile: Dockerfile
context: .
environment:
- PROMETEUS_STATUS=1
- prometheus_multiproc_dir=/usr/src/app/storage/prometheus/
#- PROMETHEUS_UWSGI_SHAREDAREA=1
- PYTHONUNBUFFERED=1
command:
- "rm -rf /usr/src/app/storage/prometheus/* && find /usr/src/app/ -name '*.pyc' -exec rm -f {} + && cd /prometheus_client && python /prometheus_client/setup.py install && cd /uwsgi_lib && python /uwsgi_lib/uwsgiconfig.py --build && cd /usr/src/app/ && /uwsgi_lib/uwsgi --ini=/usr/src/app/uwsgi.ini"
volumes:
- ./uwsgi.ini:/usr/src/app/uwsgi.ini
- ./:/usr/src/app/
- ../:/prometheus_client
- /projects/libs/uwsgi:/uwsgi_lib
ports:
- 8051:8051