Skip to content

Instantly share code, notes, and snippets.

@itasyurt
Created June 22, 2020 20:26
Show Gist options
  • Save itasyurt/df4b77b8d013f82327f02b57ca7b8f2a to your computer and use it in GitHub Desktop.
Save itasyurt/df4b77b8d013f82327f02b57ca7b8f2a to your computer and use it in GitHub Desktop.
Docker Compose for Application and Nginx
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