Skip to content

Instantly share code, notes, and snippets.

@joekenpat
Created May 2, 2022 10:36
Show Gist options
  • Save joekenpat/4a82ea2750275cc190319b05df64b9f3 to your computer and use it in GitHub Desktop.
Save joekenpat/4a82ea2750275cc190319b05df64b9f3 to your computer and use it in GitHub Desktop.
version: '3.8'
services:
db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
volumes:
db:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment