Last active
August 6, 2023 04:52
-
-
Save girorme/4c66b913317d1ad9c5e06db39f7ae0a1 to your computer and use it in GitHub Desktop.
Postgres docker compose
This file contains hidden or 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.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