-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstart_app.sh
More file actions
21 lines (20 loc) · 819 Bytes
/
start_app.sh
File metadata and controls
21 lines (20 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
docker run -d --restart='always' \
--name secretary-1 \
--link secretary_mongo:mongo \
--link queue_sender:rabbitmq \
--log-opt max-size=64m \
--log-opt max-file=1 \
-v $(pwd)/log:/app/log \
-p 127.0.0.1:5999:5000 \
-e LD_PRELOAD=/usr/local/lib/libjemalloc.so \
secretary-app:prod poetry run uwsgi ./uwsgi.ini
docker run -d --restart='always' \
--name secretary-2 \
--link secretary_mongo:mongo \
--link queue_sender:rabbitmq \
--log-opt max-size=64m \
--log-opt max-file=1 \
-v $(pwd)/log:/app/log \
-p 127.0.0.1:5998:5000 \
-e LD_PRELOAD=/usr/local/lib/libjemalloc.so \
secretary-app:prod poetry run uwsgi ./uwsgi.ini