Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Juan C. Espinoza
- Mon, 04 Jun 2018 16:38:36
Show More
0
.env
.env
+3
-1
@@
-1,2
+1,4
1
1
HOST_MONGO=mongo
2
HOST_REDIS=redis
No newline at end of file
2
HOST_REDIS=redis
3
TZ=America/Lima
4
APP_DIR=/app
No newline at end of file
0
Dockerfile
Dockerfile
+5
-1
@@
-1,12
+1,16
1
1
FROM python:2.7-slim
2
2
RUN mkdir /app
3
3
WORKDIR /app
4
4
ADD requirements.txt ./requirements.txt
5
5
RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommends \
6
6
g++ \
7
7
gcc \
8
&& pip install -r requirements.txt \
8
tzdata \
9
&& ln -snf /usr/share/zoneinfo/America/Lima /etc/localtime \
10
&& echo "America/Lima" > /etc/timezone \
11
&& dpkg-reconfigure -f noninteractive tzdata \
12
&& pip install -r requirements.txt \
9
13
&& apt-get purge -y --auto-remove gcc g++ \
10
14
&& rm -rf /var/lib/apt/lists/*
11
15
COPY . /app/
12
16
No newline at end of file
0
docker-compose.yml
docker-compose.yml
+6
-6
@@
-1,57
+1,57
1
1
version : '2'
2
2
3
3
services :
4
4
web :
5
container_name : 'realtime_web'
5
container_name : 'realtime'
6
6
build : .
7
7
restart : always
8
8
image : realtime
9
9
command : python manage.py runserver 0.0.0.0:8000
10
10
env_file : .env
11
11
ports :
12
12
- "8000:8000"
13
13
links :
14
14
- redis
15
15
- mongo
16
16
volumes :
17
- './:/app'
17
- './:${APP_DIR} '
18
18
depends_on :
19
19
- redis
20
20
- mongo
21
21
22
22
zmq_server :
23
container_name : 'zmq_server'
23
container_name : 'realtime_ zmq'
24
24
restart : always
25
25
image : 'realtime'
26
26
ports :
27
27
- '4444:4444'
28
28
command : 'python -u scripts/server.py'
29
29
env_file : .env
30
30
links :
31
31
- redis
32
32
- mongo
33
33
volumes :
34
- './:/app'
34
- './:${APP_DIR} '
35
35
depends_on :
36
36
- web
37
37
38
38
redis :
39
container_name : 'redis'
39
container_name : 'realtime_ redis'
40
40
image : 'redis:3.2-alpine'
41
41
ports :
42
42
- '127.0.0.1:6379:6379'
43
43
volumes :
44
44
- 'redisdata:/data'
45
45
46
46
mongo :
47
container_name : 'mongo'
47
container_name : 'realtime_ mongo'
48
48
image : 'mongo:3.3'
49
49
command : '--storageEngine wiredTiger'
50
50
ports :
51
51
- '127.0.0.1:27017:27017'
52
52
volumes :
53
53
- 'mongodata:/data/db'
54
54
55
55
volumes :
56
56
redisdata :
57
57
mongodata :
No newline at end of file
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages