30 lines
568 B
YAML
30 lines
568 B
YAML
version: "3.9"
|
|
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
restart: unless-stopped
|
|
user: postgres
|
|
environment:
|
|
- POSTGRES_PASSWORD=
|
|
- POSTGRES_USER=postgres
|
|
volumes:
|
|
- aurora-pg:/var/lib/postgresql/data
|
|
- ./init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
|
|
ports:
|
|
- "40010:5432"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
networks:
|
|
- aurora
|
|
|
|
volumes:
|
|
aurora-pg:
|
|
driver: local
|
|
|
|
networks:
|
|
aurora:
|
|
external: true
|
|
|