12345678910111213141516171819202122232425 |
- services:
- database:
- image: postgres:${POSTGRES_VERSION:-16}-alpine
- environment:
- POSTGRES_DB: ${POSTGRES_DB:-app}
-
- POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}
- POSTGRES_USER: ${POSTGRES_USER:-app}
- healthcheck:
- test: ["CMD", "pg_isready", "-d", "${POSTGRES_DB:-app}", "-U", "${POSTGRES_USER:-app}"]
- timeout: 5s
- retries: 5
- start_period: 60s
- volumes:
- - database_data:/var/lib/postgresql/data:rw
-
-
- volumes:
- database_data:
|