Skip to content

Instantly share code, notes, and snippets.

@JulyanoF
Created October 29, 2024 00:15
Show Gist options
  • Save JulyanoF/0977fe1e534eafc1d27528aafc6b16f4 to your computer and use it in GitHub Desktop.
Save JulyanoF/0977fe1e534eafc1d27528aafc6b16f4 to your computer and use it in GitHub Desktop.
docker-compose Postgres
version: '3.6'
services:
postgres:
image: postgres:12.2-alpine
restart: always
command: postgres -c 'max_connections=1000'
environment:
POSTGRES_PASSWORD: jbr@jbr
volumes:
- /data/postgres-12:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- infra-postgres
networks:
infra-postgres:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment