Skip to content

Commit

Permalink
Merge pull request #4 from georchestra/docker-compose-mount-vrts-as-v…
Browse files Browse the repository at this point in the history
…olume

docker-compo - mount ./vrts as vrt folder in the vrt container
  • Loading branch information
pmauduit authored Oct 31, 2023
2 parents b94ac19 + 1603e2e commit 8be8814
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ version: "3.1"

services:
database:
image: georchestra/database:latest
image: postgis/postgis:latest
healthcheck:
test: [ "CMD", "pg_isready", "-d", "georchestra", "-U", "georchestra", "-h", "0.0.0.0", "-p", "5432" ]
interval: 2s
timeout: 5s
retries: 5
start_period: 30s
environment:
- POSTGRES_USER=georchestra
- POSTGRES_PASSWORD=georchestra
- POSTGRES_DB=georchestra
restart: always
vrt-bot:
build: ./
Expand All @@ -19,5 +26,8 @@ services:
PGPASSWORD: georchestra
ACTIVESCHEMA: public
SOURCEDIR: /home/app/vrts
volumes:
- ./vrts:/home/app/vrts
depends_on:
- database
database:
condition: service_healthy

0 comments on commit 8be8814

Please sign in to comment.