Skip to content

Instantly share code, notes, and snippets.

@padupe
Created November 16, 2022 19:36
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 padupe/bdfc0e45d0bd3dfcf10487dbf6baf27a to your computer and use it in GitHub Desktop.
Save padupe/bdfc0e45d0bd3dfcf10487dbf6baf27a to your computer and use it in GitHub Desktop.
[Backstage] Simple PostgreSQL Docker container example
version: '3.7'
services:
postgresql:
image: postgres:alpine
restart: always
container_name: backstage-studies
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=${POSTGRES_HOST}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- 5432:5432
volumes:
- pgdata:/data/postgres
volumes:
pgdata:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment