-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
137 lines (125 loc) · 4.08 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
131
132
133
134
135
136
version: '3'
networks:
georestapi:
name: georestapi
services:
traefik:
image: "traefik"
container_name: traefik
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.watch"
- "--providers.docker.exposedbydefault=false"
- "--metrics.prometheus=true"
- "--metrics.prometheus.buckets=0.1,0.3,1.2,5.0"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
networks:
- georestapi
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./traefik/traefik.log:/traefik.log"
depends_on:
- tileserv
- featureserv
tileserv:
container_name: tileserv
image: pramsey/pg_tileserv
# uncomment to use config files
command: "--config /app/tileserv_config.toml"
ports:
- 7800:7800
expose:
- "7800"
volumes:
- ./config/tileserv_config.toml:/app/tileserv_config.toml:ro
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- georestapi
labels:
- "traefik.enable=true"
- "traefik.http.routers.tileserv.entrypoints=web"
- traefik.http.routers.tileserv.rule=PathPrefix("/tiles")
- "traefik.http.services.tileserv.loadbalancer.server.port=7800"
- "traefik.http.middlewares.tileserv.plugin.httpCache.memory.limit=4Gi"
environment:
DATABASE_URL: ${DATABASE_URL}
TS_BASEPATH: ${TS_BASEPATH}
TS_HTTPPORT: ${TS_HTTPPORT}
featureserv:
container_name: featureserv
image: pramsey/pg_featureserv
# uncomment to use config files
# command: "--config /app/featureserv_config.toml"
ports:
- 9000:9000
expose:
- "9000"
volumes:
- ./config/featureserv_config.toml:/app/featureserv_config.toml:ro
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- georestapi
labels:
- "traefik.enable=true"
- "traefik.http.routers.fileserv.entrypoints=web"
- traefik.http.routers.fileserv.rule=PathPrefix("/features")
- "traefik.http.services.fileserv.loadbalancer.server.port=9000"
- "traefik.http.middlewares.fileserv.plugin.httpCache.memory.limit=4Gi"
environment:
DATABASE_URL: ${DATABASE_URL}
PGFS_METADATA_TITLE: ${PGFS_METADATA_TITLE}
PGFS_SERVER_BASEPATH: ${PGFS_SERVER_BASEPATH}
PGFS_SERVER_HTTPPORT: ${PGFS_SERVER_HTTPPORT}
# postgrest:
# image: postgrest/postgrest
# container_name: postgrest
# ports:
# - "3000:3000"
# extra_hosts:
# - "host.docker.internal:host-gateway"
# networks:
# - georestapi
# environment:
# PGRST_DB_URI: ${DATABASE_URL}
# PGRST_OPENAPI_SERVER_PROXY_URI: 'http://127.0.0.1:3000'
# PGRST_DB_SCHEMAS: ${DATABASE_SCHEMA}
# PGRST_DB_ANON_ROLE: ${DATABASE_ANON}
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.postgrest.entrypoints=web"
# - traefik.http.routers.postgrest.rule=PathPrefix("/api")
# - "traefik.http.services.postgrest.loadbalancer.server.port=3000"
# - "traefik.http.middlewares.postgrest.plugin.httpCache.memory.limit=4Gi"
# - "traefik.http.routers.postgrest.middlewares=postgrest-strip"
# - "traefik.http.middlewares.postgrest-strip.stripprefix.prefixes=/api"
# WORK ON PROGRESS: Fastgeospatial
# Currently replaced by Postgrest, which I considered too bulky
# This API won't be needed once OGC CQL standards are implemented
# -----------------------------------------------------------------------
# fastgeospatial:
# container_name: fastgeospatial
# build: https://github.com/mkeller3/fastgeospatial.git#main
# image: fastgeospatial
# command: sh -c 'cp /tmp/config.py ./config.py'
# volumes:
# - ./fastgeospatial/config.py:/tmp/config.py
# ports:
# - 8082:8080
# extra_hosts:
# - "host.docker.internal:host-gateway"
# networks:
# - georestapi
# Other packages which might be needed:
# martin
# postgis
# pygeometa
# geohealthcheck