Skip to content

Commit

Permalink
Fix docker-compose snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro authored Mar 27, 2024
1 parent 69c3cbf commit 478c51e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ These images are designed to be configured in a `docker-compose.yml` as follows
environment:
POSTGRES_PASSWORD: '' # TODO: Set your postgres password here!
volumes:
- ./volumes/db:/var/lib/postgresql/docker
- ./volumes/db:/var/lib/postgresql/docker

qwc-config-db-migrate:
image: sourcepole/qwc-base-db-migrate:<version>
depends_on:
qwc-postgis:
condition: service_healthy
volumes:
- ./pg_service.conf:/tmp/pg_service.conf:ro
```
Note:
Expand All @@ -52,8 +51,8 @@ Configure the `qwc-config-db-migrate` image mounting the `pg_service.conf` conta
```yml
qwc-config-db-migrate:
image: sourcepole/qwc-base-db-migrate:<version>
volumes:
./pg_service.conf:/tmp/pg_service.conf:ro
volumes:
- ./pg_service.conf:/tmp/pg_service.conf:ro
```

Migrations will be applied automatically, if necessary, whenever the Docker application is started.
Expand All @@ -74,8 +73,8 @@ To apply the migrations, both as part as the initial setup and subsequently to k
```yml
qwc-config-db-migrate:
image: sourcepole/qwc-base-db-migrate:<version>
volumes:
./pg_service.conf:/tmp/pg_service.conf:ro
volumes:
- ./pg_service.conf:/tmp/pg_service.conf:ro
```

# DB Schema overview
Expand Down

0 comments on commit 478c51e

Please sign in to comment.