blob: 2d6d7e7606967c81d97c4d46a1fcc2d91200b895 [file] [log] [blame]
parameters:
_param:
docker_postgresql_replicas: 1
postgresql_bind_host: postgresql-db
postgresql_bind_port: 5432
postgresql_exposed_port: 5432
postgresql_ssl:
enabled: false
postgresql_admin_user: postgres
docker:
client:
images:
- ${_param:docker_image_postgresql}
stack:
postgresql:
environment:
POSTGRES_USER: ${_param:postgresql_admin_user}
POSTGRES_PASSWORD: ${_param:postgresql_admin_user_password}
PGDATA: /var/lib/postgresql/data/pgdata
service:
postgresql-db:
image: ${_param:docker_image_postgresql}
deploy:
replicas: ${_param:docker_postgresql_replicas}
restart_policy:
condition: any
volumes:
- /srv/volumes/postgresql/data:/var/lib/postgresql/data
- /var/run/postgresql:/var/run/postgresql
ports:
- ${_param:postgresql_exposed_port}:${_param:postgresql_bind_port}