Skip to content

Instantly share code, notes, and snippets.

@andrerpena
Created April 12, 2022 16:09
Show Gist options
  • Save andrerpena/f8ce47e133002e5fc13d49784167afe8 to your computer and use it in GitHub Desktop.
Save andrerpena/f8ce47e133002e5fc13d49784167afe8 to your computer and use it in GitHub Desktop.
version: "2"
services:
# fix-postgresql-permissions:
# image: "bitnami/postgresql:latest"
# user: root
# command: chown -R 1001:1001 /bitnami
# volumes:
# - ./postgresql:/bitnami/postgresql
postgresql:
image: "postgres:14.2"
volumes:
- ./postgresql-data:/var/lib/postgresql/data
- ./postgresql-init:/docker-entrypoint-initdb.d
ports:
- "5432:5432"
environment:
- POSTGRES_DB=anglio
- POSTGRES_USERNAME=doadmin
- POSTGRES_PASSWORD=test_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment