Last active
July 24, 2020 03:07
-
-
Save espeon/d7a6516a3d87d42f0e79ba2e1a6bb752 to your computer and use it in GitHub Desktop.
docker-compose with postgres and pgbouncer
This file contains hidden or 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
| 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