Skip to content

Instantly share code, notes, and snippets.

@robzlabz
Created August 9, 2025 07:33
Show Gist options
  • Save robzlabz/7ba43147e8ec8c75b2ab0f7a180d3250 to your computer and use it in GitHub Desktop.
Save robzlabz/7ba43147e8ec8c75b2ab0f7a180d3250 to your computer and use it in GitHub Desktop.
# ❌ The traditional (problematic) way
version: '3.8'
services:
postgres:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data # Where is this exactly?
environment:
POSTGRES_DB: myapp
POSTGRES_USER: admin
POSTGRES_PASSWORD: secret
volumes:
postgres_data: # Mystery location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment