Created
September 24, 2018 13:10
-
-
Save archever/a0f7fe8af76191eceaf948021b0c815d to your computer and use it in GitHub Desktop.
postgres docker compose file
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: '3.1' | |
services: | |
db: | |
image: postgres | |
restart: always | |
ports: | |
- 5432:5432 | |
volumes: | |
- $PWD/my-pgdata:/var/lib/postgresql/data | |
- $PWD/my-postgres.conf":/etc/postgresql/postgresql.conf | |
environment: | |
POSTGRES_PASSWORD: example | |
POSTGRES_USER: demo | |
PGDATA: /var/lib/postgresql/data # default | |
POSTGRES_DB: demo | |
adminer: | |
image: adminer | |
restart: always | |
ports: | |
- 8080:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment