-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
60 lines (55 loc) · 1.21 KB
/
docker-compose.yaml
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
version: "3.3"
services:
merge_proxy:
build:
context: merge_proxy
environment:
- CONFIG=/data/config.yaml
volumes:
- ./data:/data
healthcheck:
test: curl --fail http://localhost:8000 || exit 1
interval: 2s
retries: 30
timeout: 120s
restart: unless-stopped
nginx:
image: nginx
volumes:
- cache:/cache
- ./nginx.conf:/etc/nginx/templates/default.conf.template
- ./nginx.htpasswd:/etc/nginx/.htpasswd
ports:
- ${NGINX_PORT:-8080}:80
depends_on:
merge_proxy:
condition: service_healthy
restart: unless-stopped
fetcher:
profiles:
- tools
build: fetcher
environment:
- CONFIG=/data/config.yaml
- SENTRY_DSN_FETCHER=${SENTRY_DSN_FETCHER}
volumes:
- ./data:/data
command: bash -c 'ruby ./fetcher.rb'
expire:
profiles:
- tools
build: expire
environment:
- CONFIG=/data/config.yaml
- SERVER=http://nginx
- BYPASS=bypass
volumes:
- ./data:/data
command: sh -c 'ruby ./get_tiles.rb'
depends_on:
merge_proxy:
condition: service_healthy
nginx:
condition: service_started
volumes:
cache: