SSE-Lab/dockerized/simple_site/docker-compose.yaml

49 lines
737 B
YAML

version: '3'
networks:
cluster:
driver: bridge
services:
# 3 versions of the same app responding to host's 3001-3
app1:
build: .
environment:
- APP_NAME=App1
ports:
- "3000"
networks:
- cluster
app2:
build: .
environment:
- APP_NAME=App2
ports:
- "3000"
networks:
- cluster
app3:
build: .
environment:
- APP_NAME=App3
ports:
- "3000"
networks:
- cluster
# --- NGINX ---
nginx:
image: nginx:latest
ports:
- '8081:80'
volumes:
- ./nginx/config.conf:/etc/nginx/nginx.conf:ro
healthcheck:
test: ["CMD", "service", "nginx", "status"]
networks:
- cluster