aurora-deploy/backend-services/docker-compose.yaml

30 lines
568 B
YAML
Raw Normal View History

2023-07-26 11:02:59 +02:00
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