Skip to content

Instantly share code, notes, and snippets.

@marcosrjjunior
Created July 6, 2024 06:22
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
version: '3.4'
services:
postgres:
container_name: postgres_api
image: postgres:16.3-alpine3.20
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