Skip to content

Instantly share code, notes, and snippets.

@archever
Created September 24, 2018 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archever/a0f7fe8af76191eceaf948021b0c815d to your computer and use it in GitHub Desktop.
Save archever/a0f7fe8af76191eceaf948021b0c815d to your computer and use it in GitHub Desktop.
postgres docker compose file
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