hegresphere/compose.yaml

27 lines
899 B
YAML
Raw Normal View History

2024-09-26 15:40:21 +02:00
services:
###> doctrine/doctrine-bundle ###
database:
image: postgres:${POSTGRES_VERSION:-16}-alpine
environment:
2024-10-17 16:38:47 +02:00
POSTGRES_DB: ${POSTGRES_DB:-hegresphere}
2024-09-26 15:40:21 +02:00
# You should definitely change the password in production
2024-10-17 16:38:47 +02:00
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-Btssio2024}
POSTGRES_USER: ${POSTGRES_USER:-bourgoino}
2024-09-26 15:40:21 +02:00
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
# You may use a bind-mounted host directory instead, so that it is harder to accidentally remove the volume and lose all your data!
# - ./docker/db/data:/var/lib/postgresql/data:rw
###< doctrine/doctrine-bundle ###
volumes:
###> doctrine/doctrine-bundle ###
database_data:
###< doctrine/doctrine-bundle ###
2024-10-17 16:38:47 +02:00