Skip to content

Instantly share code, notes, and snippets.

@jcarley
Created October 12, 2021 20:30
Show Gist options
  • Save jcarley/d3c010fb7eee5e7960e7a1287e8abfad to your computer and use it in GitHub Desktop.
Save jcarley/d3c010fb7eee5e7960e7a1287e8abfad to your computer and use it in GitHub Desktop.
Put this in ~/ops/application_name
version: '3.8'
services:
db:
ipc: host
image: postgres:11.9-alpine
ports:
- "5432:5432"
environment:
- TERM=xterm
- POSTGRES_PASSWORD=password
- POSTGRES_USER=username
- POSTGRES_DB=databasename
volumes:
- "./dbdata:/var/lib/postgresql/data"
redis:
image: redis:5.0.12-alpine
ports:
- "6379:6379"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment