Created
June 11, 2023 17:21
-
-
Save arthurpbarros/5c3a0a28bf731b6e0b95d6495d6e92dd to your computer and use it in GitHub Desktop.
Docker compose para gerar container do PostgreSQL
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: | |
bd: | |
image: postgres | |
restart: always | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgres | |
- POSTGRES_DB=postgres | |
ports: | |
- '5400:5432' | |
networks: | |
- default | |
volumes: | |
- db:/var/lib/postgresql/data | |
networks: | |
default: | |
driver: bridge | |
volumes: | |
db: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment