# Traefik console 8080 # /app access 80 $ docker network create proxy # --- services: traefik: image: traefik:latest command: - "--api.insecure=true" - "--providers.docker=true" - "--entrypoints.web.address=:80" ports: - "80:80" - "8080:8080" volumes: - "/var/run/docker.sock:/var/run/docker.sock:ro" networks: - proxy labels: - "traefik.enable=false" networks: proxy: external: true # --- services: web: image: nginx:latest command: >- bash -c "COLORS=('red' 'green' 'blue' 'yellow' 'cyan' 'magenta' 'orange' 'purple' 'pink' 'lime' 'teal' 'brown' 'gold' 'navy' 'olive' 'maroon' 'aqua' 'coral' 'salmon' 'violet'); COLOR=$${COLORS[$$RANDOM % $${#COLORS[@]}]}; echo \"