Skip to content

Instantly share code, notes, and snippets.

@marcosrjjunior
Last active April 18, 2025 23:57
Show Gist options
  • Save marcosrjjunior/d5250416b5fe43d982f998c0b7744464 to your computer and use it in GitHub Desktop.
Save marcosrjjunior/d5250416b5fe43d982f998c0b7744464 to your computer and use it in GitHub Desktop.
docker compose services
# 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