forked from cuemacro/tcapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·144 lines (134 loc) · 3.28 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: '3.6'
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- 9500:9500
- 80:80
volumes:
- ./tcapy:/tcapy
- ./tcapy/conf/tcapy_nginx_gunicorn_docker.conf:/etc/nginx/conf.d/default.conf
- ./log:/var/log/nginx
depends_on:
- gunicorn_tcapy
- gunicorn_tcapyboard
jupyter:
build:
context: .
dockerfile: binder/Dockerfile
target: builder
environment:
- APP_ENV=docker
env_file: .tcapy.env
ports:
- 8888:8888
depends_on:
- redis
- celery
volumes:
- /tmp/csv:/tmp/csv
- /tmp/tcapy:/tmp/tcapy
- /data/csv_dump:/data/csv_dump
- ./tcapy_notebooks:/home/jovyan/tcapy_notebooks
- ./tcapy_scripts:/home/jovyan/tcapy_scripts
gunicorn_tcapy:
build:
context: .
dockerfile: Dockerfile
target: builder
command: "gunicorn --bind 0.0.0.0:8090 --workers 4 --threads 6 --preload --chdir /tcapy/tcapy/conf \
--access-logfile /tcapy/log/gunicorn_tcapy_access.log \
--error-logfile /tcapy/log/gunicorn_tcapy_error.log tcapy_wsgi:application & "
volumes:
- ./log:/tcapy/log
- /tmp/csv:/tmp/csv
- /tmp/tcapy:/tmp/tcapy
- /data/csv_dump:/data/csv_dump
env_file: .tcapy.env
environment:
- APP_ENV=docker
- TCAPY_CUEMACRO=/tcapy
depends_on:
- redis
- mongo
- mysql
- memcached
- celery
ports:
- 8090:8090
gunicorn_tcapyboard:
build:
context: .
dockerfile: Dockerfile
target: builder
command: "gunicorn --bind 0.0.0.0:8092 --workers 4 --threads 6 --preload --chdir /tcapy/tcapy/conf \
--access-logfile /tcapy/log/gunicorn_tcapy_access.log \
--error-logfile /tcapy/log/gunicorn_tcapy_error.log tcapyboard_wsgi:application & "
volumes:
- ./log:/tcapy/log
- /tmp/csv:/tmp/csv
- /tmp/tcapy:/tmp/tcapy
- /data/csv_dump:/data/csv_dump
env_file: .tcapy.env
environment:
- APP_ENV=docker
- TCAPY_CUEMACRO=/tcapy
depends_on:
- redis
- mongo
- mysql
- memcached
- celery
ports:
- 8092:8092
celery:
build:
context: .
dockerfile: Dockerfile
target: builder
working_dir: /tcapy
command: "celery -A tcapy.conf.celery_calls worker --purge --discard --loglevel=debug -Q celery --concurrency=14 -f log/celery.log"
volumes:
- ./log:/tcapy/log
- /tmp/csv:/tmp/csv
- /tmp/tcapy:/tmp/tcapy
- /data/csv_dump:/data/csv_dump
env_file: .tcapy.env
environment:
- APP_ENV=docker
- C_FORCE_ROOT=true
depends_on:
- redis
- mongo
- mysql
- memcached
redis:
image: "redis:alpine"
command: redis-server --port 6379 --save ""
ports:
- 6379:6379
memcached:
image: memcached
ports:
- 11211:11211
mongo:
image: mongo:latest
env_file: .tcapy.env
ports:
- 27017:27017
volumes:
- /data/db_mongodb:/data/db
- ./log/:/var/log/mongodb/
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
volumes:
- /data/db_mysql:/var/lib/mysql
env_file: .tcapy.env
ports:
- 3306:3306
adminer:
image: adminer
ports:
- 8080:8080