-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdc-services.yml
83 lines (77 loc) · 2.41 KB
/
dc-services.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
version: '2.3'
services:
autoheal:
# Process that monitors other dockers, and restarts them once they become unhealthy
# Requires container to have an "autoheal=true" label
image: willfarrell/autoheal
restart: always
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
logging:
driver: json-file
options: {max-file: "3", max-size: "10m"}
mapshaper:
# Extra web UI tool to process map geometry results
image: crazycapivara/docker-mapshaper
restart: always
ports:
- "5555"
networks:
- proxy_net
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy_net"
- "traefik.frontend.rule=Host:${SOPHOX_HOST};PathPrefixStrip:/mapshaper/;Method:GET"
- "traefik.frontend.headers.customResponseHeaders=Access-Control-Allow-Origin:*||access-control-allow-methods:GET,OPTIONS"
logging:
driver: json-file
options: {max-file: "3", max-size: "10m"}
vote-server:
# Records user votes for feature modification
image: sophox/vote-server
restart: always
environment:
BLAZEGRAPH_URL: "${BLAZEGRAPH_URL}"
ports:
- "9979"
networks:
- proxy_net
- blazegraph_net
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy_net"
- "traefik.frontend.rule=Host:${SOPHOX_HOST};PathPrefixStrip:/store/;Method:PUT,DELETE,OPTIONS"
logging:
driver: json-file
options: {max-file: "3", max-size: "10m"}
osm-regions:
# Serves geoshapes from Postgres, attaching them to the SPARQL query results
image: sophox/osm-regions-server
restart: always
environment:
POSTGRES_HOST: postgres
POSTGRES_DB: gis
POSTGRES_USER: sophox
POSTGRES_PASSWORD:
BLAZEGRAPH_URL: "${BLAZEGRAPH_URL}"
WIKIBASE_URL: "https://wikibase.org/sparql"
REGIONS_TABLE: planet_osm_polygon
ports:
- "9978"
networks:
- proxy_net
- postgres_net
- blazegraph_net
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy_net"
- "traefik.frontend.rule=Host:${SOPHOX_HOST};PathPrefixStrip:/regions/;Method:GET"
- "traefik.frontend.headers.customResponseHeaders=Access-Control-Allow-Origin:*||access-control-allow-methods:GET,OPTIONS"
logging:
driver: json-file
options: {max-file: "3", max-size: "10m"}
networks:
proxy_net:
external: true
postgres_net:
blazegraph_net: