27 lines
607 B
YAML
27 lines
607 B
YAML
name: htl-workshop
|
|
|
|
services:
|
|
reverse-proxy:
|
|
image: nginx:1.27-alpine
|
|
container_name: workshop-proxy
|
|
depends_on:
|
|
- backend-a
|
|
- backend-b
|
|
ports:
|
|
- "${HTTP_PORT:-8080}:80"
|
|
volumes:
|
|
- ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro,z
|
|
- ./proxy/html:/usr/share/nginx/html:ro,z
|
|
|
|
backend-a:
|
|
image: nginx:1.27-alpine
|
|
container_name: workshop-backend-a
|
|
volumes:
|
|
- ./backends/a:/usr/share/nginx/html:ro,z
|
|
|
|
backend-b:
|
|
image: nginx:1.27-alpine
|
|
container_name: workshop-backend-b
|
|
volumes:
|
|
- ./backends/b:/usr/share/nginx/html:ro,z
|