Created
October 29, 2024 00:15
-
-
Save JulyanoF/0977fe1e534eafc1d27528aafc6b16f4 to your computer and use it in GitHub Desktop.
docker-compose Postgres
This file contains 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
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