Skip to content

Instantly share code, notes, and snippets.

@espeon
Last active July 24, 2020 03:07
Show Gist options
  • Select an option

  • Save espeon/d7a6516a3d87d42f0e79ba2e1a6bb752 to your computer and use it in GitHub Desktop.

Select an option

Save espeon/d7a6516a3d87d42f0e79ba2e1a6bb752 to your computer and use it in GitHub Desktop.
docker-compose with postgres and pgbouncer
services:
postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: PASsWORD
volumes:
- ./pg_data:/var/lib/postgresql/data
ports:
- "5432:5432"
pgbouncer:
image: brainsam/pgbouncer
environment:
- DB_HOST=postgres
- DB_USER=postgres
- DB_PASSWORD=PASsWORD
ports:
- "6432:6432"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment