Skip to content

Instantly share code, notes, and snippets.

@feliperodriguess
Created August 12, 2022 05:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save feliperodriguess/56563948c5d813ef627646eeb2c1bad1 to your computer and use it in GitHub Desktop.
Save feliperodriguess/56563948c5d813ef627646eeb2c1bad1 to your computer and use it in GitHub Desktop.
Postgres Docker Compose Snippet
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