Skip to content

Instantly share code, notes, and snippets.

@orthodoX
Created July 28, 2022 12:59
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 orthodoX/b1cf92f62675c2741128501163cfdeb1 to your computer and use it in GitHub Desktop.
Save orthodoX/b1cf92f62675c2741128501163cfdeb1 to your computer and use it in GitHub Desktop.
Docker compose with Postgres
version: '3.9'
services:
app:
build: .
volumes:
- .:/app
stdin_open: true
tty: true
postgres:
image: postgres:14.4-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- '5432:5432'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment