forked from COSCUP/COSCUP-Volunteer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_app.sh
23 lines (22 loc) · 887 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:/app/log \
-p 127.0.0.1:6699:6699 \
-e LD_PRELOAD=/usr/local/lib/libjemalloc.so \
volunteer-app:prod python3 ./main.py
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:/app/log \
-p 127.0.0.1:6688:6699 \
-e LD_PRELOAD=/usr/local/lib/libjemalloc.so \
volunteer-app:prod python3 ./main.py