-
Notifications
You must be signed in to change notification settings - Fork 34
/
start_app.sh
23 lines (22 loc) · 919 Bytes
/
start_app.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
docker run -d --restart='always' \
--name volunteer-1 \
--link secretary_mongo:mongo \
--link queue_sender:rabbitmq \
--link memcached-prod:memcached \
--log-opt max-size=64m \
--log-opt max-file=1 \
-v $(pwd)/log:/var/log/apps \
-p 127.0.0.1:6699:5000 \
-e LD_PRELOAD=/usr/local/lib/libjemalloc.so \
volunteer-app:prod poetry run uwsgi ./uwsgi.ini
docker run -d --restart='always' \
--name volunteer-2 \
--link secretary_mongo:mongo \
--link queue_sender:rabbitmq \
--link memcached-prod:memcached \
--log-opt max-size=64m \
--log-opt max-file=1 \
-v $(pwd)/log:/var/log/apps \
-p 127.0.0.1:6688:5000 \
-e LD_PRELOAD=/usr/local/lib/libjemalloc.so \
volunteer-app:prod poetry run uwsgi ./uwsgi.ini