| 123456789101112131415161718192021222324 |
- version: '3.8'
- services:
- postgres:
- image: postgis/postgis:15-3.3
- container_name: photoplaces-db
- environment:
- POSTGRES_DB: photoplaces
- POSTGRES_USER: photoplaces_user
- POSTGRES_PASSWORD: photoplaces_password
- ports:
- - "5432:5432"
- volumes:
- - postgres_data:/var/lib/postgresql/data
- - ./init.sql:/docker-entrypoint-initdb.d/init.sql
- restart: unless-stopped
- healthcheck:
- test: ["CMD-SHELL", "pg_isready -U photoplaces_user -d photoplaces"]
- interval: 30s
- timeout: 10s
- retries: 5
- volumes:
- postgres_data:
|