Skip to content

Instantly share code, notes, and snippets.

@ciiiii
Last active February 3, 2018 11:55
Show Gist options
  • Save ciiiii/3dfcb070f532563505d05fe60ead4abf to your computer and use it in GitHub Desktop.
Save ciiiii/3dfcb070f532563505d05fe60ead4abf to your computer and use it in GitHub Desktop.
posgresql(healthcheck) docker-compose
version: '2.1'
services:
postgres:
# image: sameersbn/postgresql:9.6-2
image: healthcheck/postgres
ports:
- "5432:5432"
environment:
- POSTGRES_DB=pgname
- POSTGRES_USER=pguser
- POSTGRES_PASSWORD=pguserpass
- PG_TRUST_LOCALNET=true
volumes:
- /tmp/docker/postgresql:/var/lib/postgresql
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment