Created
November 16, 2022 19:36
-
-
Save padupe/bdfc0e45d0bd3dfcf10487dbf6baf27a to your computer and use it in GitHub Desktop.
[Backstage] Simple PostgreSQL Docker container example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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