mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 04:31:13 +01:00
18 lines
487 B
Django/Jinja
18 lines
487 B
Django/Jinja
|
|
database:
|
|
image: postgres:{{database_version}}-alpine
|
|
environment:
|
|
- POSTGRES_PASSWORD={{database_password}}
|
|
- POSTGRES_USER={{database_username}}
|
|
- POSTGRES_DB={{database_databasename}}
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U {{database_databasename}}"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 6
|
|
volumes:
|
|
- type: volume
|
|
source: database
|
|
target: /var/lib/postgresql/data
|