Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation for running with Docker Compose #1283

Merged
merged 2 commits into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
fileserver:
image: nginx:alpine
Expand Down
10 changes: 4 additions & 6 deletions docs/src/run-with-docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
You can use example [`docker-compose.yml`](https://raw.githubusercontent.com/maplibre/martin/main/docker-compose.yml) file as a reference

```yml
version: '3'

services:
martin:
image: ghcr.io/maplibre/martin:v0.11.2
image: ghcr.io/maplibre/martin:v0.13.0
restart: unless-stopped
ports:
- "3000:3000"
Expand All @@ -17,7 +15,7 @@ services:
- db

db:
image: postgis/postgis:14-3.3-alpine
image: postgis/postgis:16-3.4-alpine
restart: unless-stopped
environment:
- POSTGRES_DB=db
Expand All @@ -31,13 +29,13 @@ services:
First, you need to start `db` service

```shell
docker-compose up -d db
docker compose up -d db
```

Then, after `db` service is ready to accept connections, you can start `martin`

```shell
docker-compose up -d martin
docker compose up -d martin
```

By default, Martin will be available at [localhost:3000](http://localhost:3000/)
Loading