-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
130 lines (124 loc) · 2.97 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
version: '3'
services:
db:
image: postgres:9.6
container_name: ps-postgres
hostname: db
expose:
- "5432"
environment:
- COMPOSE_HTTP_TIMEOUT=300
networks:
jaz:
aliases:
- ps-postgres
rabbitmq:
image: rabbitmq:3-management
container_name: ps-rabbitmq
hostname: rabbitmq
expose:
- "5672"
- "15672"
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
- COMPOSE_HTTP_TIMEOUT=300
networks:
jaz:
aliases:
- ps-rabbitmq
app:
build:
context: .
dockerfile: Dockerfile
container_name: ps-app
hostname: app
tty: true
command: /site/docker-utils/start.sh
volumes:
- static-volume:/site/htdocs/static/
- ./logs:/site/proj/logs
- ./polyglot_source:/site/proj/polyglot_source
- ./polyglot_data:/site/proj/polyglot_data
- ./pgdb:/site/proj/pgdb
- ./iscan_server:/site/proj/iscan_server
- ./docker-utils:/site/docker-utils
- ../PolyglotDB:/site/proj/PolyglotDB
- ../ISCAN:/site/proj/ISCAN
- ../SPADE:/site/proj/SPADE
- ../unisyn_spade:/site/proj/unisyn_spade
expose:
- "80"
- "8080"
ports:
- 8080:8080
- 80:80
- 7400:7800
- 8400:8800
environment:
- DATABASE_URL=postgres://postgres@db/postgres
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
- SITE_DIR=/site/
- PROJECT_NAME=iscan_server
- DJANGO_DEBUG=True
- COMPOSE_HTTP_TIMEOUT=300
depends_on:
- rabbitmq
- db
- worker
networks:
jaz:
aliases:
- ps-app
worker:
build:
context: .
dockerfile: Dockerfile
container_name: ps-worker
hostname: worker
command: /site/env/bin/celery worker -A iscan_server --workdir /site/proj/ -l info
ports:
- 7402:7402
volumes:
- static-volume:/site/htdocs/static/
- ./logs:/site/proj/logs
- ./polyglot_source:/site/proj/polyglot_source
- ./polyglot_data:/site/proj/polyglot_data
- ./pgdb:/site/proj/pgdb
- ./iscan_server:/site/proj/iscan_server
- ./docker-utils:/site/docker-utils
- ../PolyglotDB:/site/proj/PolyglotDB
- ../ISCAN:/site/proj/ISCAN
- ../SPADE:/site/proj/SPADE
- ../unisyn_spade:/site/proj/unisyn_spade
environment:
- DATABASE_URL=postgres://postgres@db/postgres
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672//
- SITE_DIR=/site/
- PROJECT_NAME=iscan_server
- DJANGO_DEBUG=False
- COMPOSE_HTTP_TIMEOUT=300
depends_on:
- rabbitmq
networks:
jaz:
aliases:
- ps-worker
networks:
jaz:
volumes:
static-volume:
polyglot_source:
driver: "local"
polyglot_data:
driver: "local"
pgdb:
driver: "local"
polyglot_server:
driver: "local"
docker-utils:
driver: "local"
PolyglotDB:
driver: "local"
test_data:
driver: "local"