Skip to content

Commit

Permalink
add docker-compose.yml for PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
cioddi committed May 30, 2024
1 parent 1a73c93 commit 68be270
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docker/docker-compose.pgsql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
services:
mapbender:
build:
context: ../
ports:
- 80:8080
environment:
MAPBENDER_DATABASE_URL: "pgsql://pguser:pgpass@db:5432/postgres"
depends_on:
db:
condition: service_healthy
db:
image: postgis/postgis:14-3.4
restart: always
ports:
- 55432:5432
#volumes:
# - ./volumes/db/data:/var/lib/postgresql/data:rw
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: pgpass
POSTGRES_DB: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U pguser -d postgres"]
interval: 10s
timeout: 5s
retries: 5

0 comments on commit 68be270

Please sign in to comment.