Skip to content

Instantly share code, notes, and snippets.

@andreloty
Last active January 13, 2026 23:23
Show Gist options
  • Select an option

  • Save andreloty/0bd72dd8bd2bf18983f8df09016b8956 to your computer and use it in GitHub Desktop.

Select an option

Save andreloty/0bd72dd8bd2bf18983f8df09016b8956 to your computer and use it in GitHub Desktop.
PostgreSQL Docker Compose
services:
postgres:
image: postgres:16
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123
POSTGRES_DB: MetamorfosePropostaService
TZ: America/Sao_Paulo
PGTZ: America/Sao_Paulo
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
command:
- postgres
- -c
- max_connections=2000
- -c
- timezone=America/Sao_Paulo
- -c
- log_timezone=America/Sao_Paulo
volumes:
pgdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment