Skip to content

Commit

Permalink
Docker docs tweaks (#598)
Browse files Browse the repository at this point in the history
* Add missing image specification

* Mount postgres data for persistence.
  • Loading branch information
danielballan authored Nov 15, 2023
1 parent d9fb7f8 commit ebfa643
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/source/how-to/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ One way to run a PostgresSQL database is:

```
export TILED_DATABASE_PASSWORD=db_secret
docker run --name tiled-test-postgres -p 5432:5432 -e POSTGRES_PASSWORD=${TILED_DATABASE_PASSWORD} -d docker.io/postgres
mkdir postgres-data
docker run -d \
--name tiled-test-postgres \
-p 5432:5432 \
-e POSTGRES_PASSWORD=${TILED_DATABASE_PASSWORD} \
-v ./postgres-data:/var/lib/postgresql/data \
docker.io/postgres:16
```

Initialize the database. (This creates the tables, indexes, and so on used by Tiled.)
Expand Down Expand Up @@ -198,7 +204,8 @@ under the Tiled repository root. The container image has one in particular,
docker run \
-p 8000:8000 \
-e TILED_SINGLE_USER_API_KEY=secret \
-v ./config:/deploy/config:ro
-v ./config:/deploy/config:ro \
ghcr.io/bluesky/tiled:latest
```

You may need to mount additional volumes as well.
Expand Down

0 comments on commit ebfa643

Please sign in to comment.