Skip to content

Instantly share code, notes, and snippets.

@Narven
Last active October 8, 2020 16:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Narven/0332fabf2b8f15af2463e4de22f355fc to your computer and use it in GitHub Desktop.
Save Narven/0332fabf2b8f15af2463e4de22f355fc to your computer and use it in GitHub Desktop.
Docker compose config for fast postgres
POSTGRES_USER=REPLACE
POSTGRES_PASSWORD=REPLACE
POSTGRES_DB=REPLACE_dev
POSTGRES_HOST=localhost
version: '3'
services:
database:
container_name: REPLACE-database
image: "postgres:9.6.19"
env_file:
- .env # configure postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- 5432:5432
networks:
- REPLACE_network
volumes:
postgres_data:
networks:
REPLACE_network:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment