Last active
May 14, 2019 01:47
-
-
Save kisna72/edc5af6f98021a2b51f09bdeb03786f0 to your computer and use it in GitHub Desktop.
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' | |
services: | |
postgres: | |
build: | |
context: . | |
dockerfile: postgres/Dockerfile | |
image: postgres:tag | |
env_file: .env | |
ports: | |
- '5432:5432' | |
backend: | |
build: | |
context: . | |
dockerfile: backend/Dockerfile | |
image: backend | |
environment: | |
database:postgresql://user:password@postgres:5432' | |
depends_on: | |
- postgres | |
ports: | |
- '8000:8000' | |
frontend: | |
build: | |
context: . | |
dockerfile: frontend/Dockerfile | |
image: frontend | |
ports:'5000:5000' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment