Skip to content

Commit

Permalink
Updated Docker quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrasingh committed Aug 8, 2024
1 parent 88ebc77 commit 5554476
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
1 change: 1 addition & 0 deletions contrib/docker/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openapi.json
14 changes: 11 additions & 3 deletions contrib/docker/quickstart/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@ services:
# 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:latest
restart: on-failure:3

# This is optional, demonstrating how to specify your config path.
# The default path is /etc/geoprox/
# Feel free to remove this command if you are fine with the default config path
command: -c /etc/geoprox/geoprox.toml
environment:
GEOPROX_CONFIG: /etc/geoprox/geoprox.toml

ports:
- 5000:5000

volumes:
- ./geoprox.toml:/etc/geoprox/geoprox.toml:ro

# Here is an example to generate just the OpenAPI spec
geoprox-spec:
image: ezrasingh/geoprox:latest
entrypoint: ['geoprox', 'spec' ]
command: --destination /tmp --filename openapi.json --pretty
volumes:
- ./:/tmp:z
4 changes: 0 additions & 4 deletions contrib/docker/quickstart/geoprox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,3 @@ http_port = 5000
insert_depth = 6
# Determines the default geohash length for searches
search_depth = 6
# Specifies the default number of results returned in range queries
default_count = 100
# Toggles the default sorting behavior for query results
default_sorted = false

0 comments on commit 5554476

Please sign in to comment.