-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
140 lines (123 loc) · 2.68 KB
/
docker-compose.yml
File metadata and controls
140 lines (123 loc) · 2.68 KB
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
version: "2"
services:
nginx:
image: nginx
ports:
- "80:80"
volumes:
- run:/var/run
- ./www:/var/www
- ./build/nginx/sites:/etc/nginx/conf.d
- ./build/nginx/nginx.conf:/etc/nginx/nginx.conf
telecatbot:
image: python:3.5
build:
context: build/python
links:
- redis
volumes:
- ./www/telecatbot:/data
- python-packages:/usr/local/lib/python3.5/site-packages
- run:/var/run
env_file:
./www/creator/.env
environment:
REDIS_HOST: redis
working_dir: /data
entrypoint: sh
command: -c "python manage.py"
autosqla:
image: python:3.5
build:
context: build/python
volumes:
- ./www/autosqla:/data
- python-packages:/usr/local/lib/python3.5/site-packages
- run:/var/run
working_dir: /data
entrypoint: sh
sanic:
image: python:3.5
build:
context: build/python
volumes:
- ./www/sanic_test:/data
- python-packages:/usr/local/lib/python3.5/site-packages
- run:/var/run
working_dir: /data
entrypoint: sh
command: -c "python run.py runserver"
creator:
image: python:3.5
build:
context: build/python
links:
- redis
- postgres
volumes:
- ./www/creator:/data
- python-packages:/usr/local/lib/python3.5/site-packages
- bin:/usr/local/bin
- run:/var/run
working_dir: /data
entrypoint: sh
env_file:
./www/creator/.env
environment:
FLASK_APP: /data/manage.py
REDIS_HOST: redis
DB_HOST: postgres
DB_USER: user
DB_PASSWORD: password
DEFAULT_DB: base
command: -c "gunicorn manage:app -b unix:/var/run/creator.sock -k gevent --workers=2 --pid /tmp/creator.pid --reload"
postgres:
image: postgres
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: base
redis:
image: redis
volumes:
- redis-data:/data
ports:
- "6379:6379"
command: redis-server --appendonly yes
node:
image: node:6
build:
context: build/node
volumes:
- run:/var/run
- ./www:/var/www
environment:
NODE_ENV: development
stop_signal: SIGINT
working_dir: /var/www
# mongo:
# image: mongo:3.2
# volumes:
# - mongo-data:/data/db
# ports:
# - "27017:27017"
# mem_limit: 2147483648
volumes:
redis-data:
driver: local
mysql-data:
driver: local
# mongo-data:
# driver: local
postgres-data:
driver: local
run:
driver: local
python-packages:
driver: local
bin:
driver: local