Skip to content

Commit

Permalink
switching to postgis/postgis, adding a HC
Browse files Browse the repository at this point in the history
  • Loading branch information
pmauduit committed Oct 31, 2023
1 parent 74d62d4 commit 1603e2e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 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 @@ -22,4 +29,5 @@ services:
volumes:
- ./vrts:/home/app/vrts
depends_on:
- database
database:
condition: service_healthy

0 comments on commit 1603e2e

Please sign in to comment.