forked from douban/code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (46 loc) · 894 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (46 loc) · 894 Bytes
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
web:
extends:
file: docker-common.yml
service: code
build: ./dockerfiles/python
command: gunicorn -b 0.0.0.0:8200 --reload app:app
ports:
- "8200:8200"
links:
- "mysql"
- "memcached"
- "beansdb"
- "redis"
webpack:
extends:
file: docker-common.yml
service: node
command: bash -c "cp -R /node_modules /code; npm run build; npm run watch"
volumes_from:
- web
grunt:
extends:
file: docker-common.yml
service: node
command: bash -c "cp -R /node_modules /code; grunt ozma compass:dev; grunt watch"
volumes_from:
- web
mysql:
build: ./dockerfiles/mysql
env_file:
- ./code.env
- ./code.local.env
ports:
- "3306:3306"
memcached:
image: memcached:1.4
ports:
- "11211:11211"
redis:
image: redis:3.0
ports:
- "6379:6379"
beansdb:
image: mozillazg/beansdb:0.7.1.4
ports:
- "7900:7900"