Created
June 22, 2020 20:26
-
-
Save itasyurt/df4b77b8d013f82327f02b57ca7b8f2a to your computer and use it in GitHub Desktop.
Docker Compose for Application and Nginx
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: | |
lb: | |
build: | |
context: ./nginx | |
dockerfile: Dockerfile | |
ports: | |
- "9090:9090" | |
depends_on: | |
- service1 | |
- service2 | |
service1: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
ports: | |
- "8181:8080" | |
service2: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
ports: | |
- "8282:8080" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment