Skip to content

Instantly share code, notes, and snippets.

@aleksb86
Last active December 9, 2019 15:52
Show Gist options
  • Save aleksb86/d2834d78d9f40083affecc78f584f80c to your computer and use it in GitHub Desktop.
Save aleksb86/d2834d78d9f40083affecc78f584f80c to your computer and use it in GitHub Desktop.
Simple compose file for Postgresql
version: '3.7'
services:
db:
image: postgres:12.1-alpine
ports:
- '5432:5432'
volumes:
- ./data:/var/lib/postgresql/data
environment:
- POSTRGES_USER=postgres
- POSTGRES_PASSWORD=123456
volumes:
data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment