Last active
February 3, 2018 11:55
-
-
Save ciiiii/3dfcb070f532563505d05fe60ead4abf to your computer and use it in GitHub Desktop.
posgresql(healthcheck) docker-compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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