-
-
Save Narven/0332fabf2b8f15af2463e4de22f355fc to your computer and use it in GitHub Desktop.
Docker compose config for fast postgres
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
POSTGRES_USER=REPLACE | |
POSTGRES_PASSWORD=REPLACE | |
POSTGRES_DB=REPLACE_dev | |
POSTGRES_HOST=localhost |
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
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