-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.override.yml
171 lines (156 loc) · 3.83 KB
/
docker-compose.override.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
# Dev configuration
version: '3.1'
services:
composer:
build:
args:
- DEPLOYMENT=development
command: --bundle-dev --serve-dev
volumes:
- ./deps/story-tools-composer:/srv/story-tools-composer:cached
- composer_node_modules:/srv/story-tools-composer/node_modules:cached
- storytools_node_modules:/srv/story-tools-composer/deps/story-tools/node_modules:cached
- composer_yarn:/usr/local/share/.config/yarn:cached
# ports:
# - "9090:9090"
selenium:
image: selenium/standalone-chrome
links:
- nginx
networks:
internal:
expose:
- "4444"
protractor:
build:
context: .
dockerfile: Dockerfile.protractor
image: quay.io/mapstory/protractor:$TAG
links:
- selenium
- nginx
volumes:
- ./mapstory/tests:/opt/mapstory/tests:cached
networks:
internal:
postgres:
image: quay.io/mapstory/postgis:9.6.10-alpine
env_file:
- docker/env/dev/db_auth.env
- docker/env/dev/postgres.env
volumes:
- postgres:/var/lib/postgresql/data
networks:
internal:
expose:
- "5432"
# ports:
# - "5432:5432"
pgadmin:
links:
- postgres
env_file:
- docker/env/dev/db_auth.env
# ports:
# - "5050:5050"
elasticsearch:
ports:
- "9200:9200"
rabbitmq:
environment:
- RABBITMQ_DEFAULT_USER=mapstory
- RABBITMQ_DEFAULT_PASS=password
- RABBITMQ_DEFAULT_VHOST=mapstory
# ports:
# - "15671:15671"
# - "15672:15672"
maploom-build:
build:
context: ./deps/maploom
image: quay.io/mapstory/maploom-build:$TAG
environment:
GIT_DIR: /git
volumes:
- ./deps/maploom:/usr/src/app:cached
- .git:/git
django-maploom-build:
build:
context: ./deps/django-maploom
image: quay.io/mapstory/django-maploom-build:$TAG
environment:
GIT_DIR: /git
depends_on:
- maploom-build
volumes:
- ./deps/django-maploom:/django-maploom:cached
- ./deps/maploom:/maploom:cached
- .git:/git
story-tools-build:
build:
context: ./deps/story-tools
image: quay.io/mapstory/story-tools-build:$TAG
environment:
GIT_DIR: /git
volumes:
- ./deps/story-tools:/usr/src/app:cached
- .git:/git
django:
links:
- postgres
env_file:
- docker/env/dev/public_host.env
- docker/env/dev/geoserver.env
- docker/env/dev/mapstory.env
- docker/env/dev/db_auth.env
environment:
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
command: [--collect-static-dev, --init-db, --reindex, --serve-dev]
volumes:
- .:/srv/mapstory/:cached
- ./cover:/srv/mapstory/cover:cached
# ports:
# - "8000:8000"
stdin_open: true
tty: true
celery:
links:
- postgres
env_file:
- docker/env/dev/public_host.env
- docker/env/dev/geoserver.env
- docker/env/dev/mapstory.env
- docker/env/dev/db_auth.env
environment:
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
volumes:
- .:/srv/mapstory/:cached
- ./cover:/srv/mapstory/cover:cached
django_volumes:
entrypoint: /bin/sh -c "chown -R mapstory:mapstory /var/lib/mapstory && chown -R mapstory:mapstory /srv/mapstory/cover"
volumes:
- ./cover:/srv/mapstory/cover
geoserver:
links:
- postgres
env_file:
- docker/env/dev/public_host.env
- docker/env/dev/geoserver.env
- docker/env/dev/db_auth.env
# ports:
# - "8080:8080"
nginx:
env_file:
- docker/env/dev/public_host.env
environment:
- NGINX_NUM_WORKERS=1
- NGINX_GZIP_COMP_LEVEL=1
- DEV_DEPLOYMENT=True
networks:
internal:
aliases:
- docker
volumes:
postgres:
composer_node_modules:
storytools_node_modules:
composer_yarn: