Skip to content

Instantly share code, notes, and snippets.

@AndyWatt83
Last active December 6, 2021 22:54
Show Gist options
  • Save AndyWatt83/7030568b555229732f1640fa4dd7ed89 to your computer and use it in GitHub Desktop.
Save AndyWatt83/7030568b555229732f1640fa4dd7ed89 to your computer and use it in GitHub Desktop.
version: '3'
services:
database:
container_name: postgres
image: "postgres"
env_file:
- database/database.env
volumes:
- blog-database-data:/var/lib/postgresql/data/
dev-env:
container_name: dev-env
build:
context: ./dev-env
volumes:
- "..:/workspace"
stdin_open: true # docker run -i
tty: true # docker run -t
volumes:
blog-database-data: null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment