forked from legco-watch/legco-watch
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
63 lines (56 loc) · 926 Bytes
/
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
dbdata:
image: debian:7.7
volumes:
- "/var/lib/postgresql/data"
logdata:
image: debian:7.7
volumes:
- "/logs"
appdata:
image: debian:7.7
volumes:
- "/legco-data"
db:
image: postgres:9.3
ports:
- "5432"
volumes_from:
- dbdata
- logdata
environment:
POSTGRES_PASSWORD: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_DB: "postgres"
appserver:
build: .
links:
- db:db
- rabbitmq:rabbitmq
volumes_from:
- logdata
- appdata
ports:
- "8001:8001"
volumes:
- ".:/legcowatch"
command: "../bin/appserver.sh"
worker:
build: .
links:
- db:db
- rabbitmq:rabbitmq
volumes_from:
- appdata
volumes:
- ".:/legcowatch"
command: "../bin/worker.sh"
environment:
C_FORCE_ROOT: "true"
rabbitmq:
image: rabbitmq:latest
volumes_from:
- logdata
scrapydserver:
build: docker/scrapyd
volumes_from:
- logdata