Last active
April 30, 2021 07:30
-
-
Save tanay-pingalkar/41a047a04234e3a7ecdd2e64954a90df to your computer and use it in GitHub Desktop.
This file contains hidden or 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: | |
db: | |
image: postgres:alpine | |
environment: | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_DB: example | |
volumes: | |
- ./pgdata:/var/lib/postgresql/data | |
ports: | |
- "5555:5432" | |
web: | |
build: . | |
depends_on: | |
- db | |
ports: | |
- "8080:8080" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment