Last active
April 18, 2025 23:57
-
-
Save marcosrjjunior/d5250416b5fe43d982f998c0b7744464 to your computer and use it in GitHub Desktop.
docker compose services
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
# Add a filled called "docker-compose.yml" in the root | |
# run `docker compose up` to spin up postgree | |
services: | |
postgres: | |
container_name: postgres_api | |
image: bitnami/postgresql:latest | |
ports: | |
- 5432:5432 | |
restart: always | |
volumes: | |
- db_data:/var/lib/postgresql/data | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: secret | |
volumes: | |
db_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment