-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
28 lines (25 loc) · 942 Bytes
/
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
services:
geoprox:
# I recommend pinning the tag to a specific version.
# Available tags can be found at https://hub.docker.com/repository/docker/ezrasingh/geoprox/tags
image: ezrasingh/geoprox:${IMAGE_TAG:-latest}
restart: on-failure:3
command: -c geoprox.toml
# This is optional, demonstrating how to specify env vars
environment:
# either use -c flag or this env var
# GEOPROX_CONFIG: /my/custom/path/geoprox.toml
GEOPROX_HTTP_ADDR: 0.0.0.0
GEOPROX_HTTP_PORT: 5000
ports:
- ${HOST_PORT:-5000}:5000
volumes:
- ./geoprox.toml:/var/lib/geoprox/geoprox.toml:ro
- ./snapshots:/var/lib/geoprox/snapshots:z
# Here is an example to generate just the OpenAPI spec
geoprox-spec:
image: ezrasingh/geoprox:${IMAGE_TAG:-latest}
entrypoint: ['geoprox', 'spec' ]
command: --destination /tmp --filename openapi.json --pretty
volumes:
- ./:/tmp:z