Skip to content

Instantly share code, notes, and snippets.

@girorme
Last active August 6, 2023 04:52
Show Gist options
  • Save girorme/4c66b913317d1ad9c5e06db39f7ae0a1 to your computer and use it in GitHub Desktop.
Save girorme/4c66b913317d1ad9c5e06db39f7ae0a1 to your computer and use it in GitHub Desktop.
Postgres docker compose
version: "3.4"
volumes:
my_postgres:
services:
postgres:
container_name: my_postgres
image: postgres:12.0-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- my_postgres:/var/lib/postgresql/data
logging:
options:
max-file: "5"
max-size: "10m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment