Skip to content

Instantly share code, notes, and snippets.

@RioChndr
Last active August 21, 2022 03:10
Show Gist options
  • Save RioChndr/506464390614a3c82aa23b236a115977 to your computer and use it in GitHub Desktop.
Save RioChndr/506464390614a3c82aa23b236a115977 to your computer and use it in GitHub Desktop.
Docker compose postgresql
version: '3.1'
services:
db_postgres:
container_name: db_postgres_mynykah
image: postgres
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password123
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./pgdata:/var/lib/postgresql/data
ports:
- "8875:5432"
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment