blob: 42ebf8fb007b79fd2679803e255e1a41c91e09bb [file] [log] [blame]
parameters:
_param:
docker_postgresql_replicas: 1
docker_image_postgresql: library/postgres:9.6
postgresql_bind_host: postgresql-db
postgresql_bind_port: ${_param:haproxy_postgresql_bind_port}
postgresql_ssl:
enabled: false
postgresql_admin_user: postgres
postgresql_admin_user_password: postgrespassword
docker:
client:
stack:
postgresql:
environment:
POSTGRES_USER: ${_param:postgresql_admin_user}
POSTGRES_PASSWORD: ${_param:postgresql_admin_user_password}
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
ports:
- ${_param:haproxy_postgresql_exposed_port}:${_param:haproxy_postgresql_bind_port}
network:
default:
external:
name: oss_backend