Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- web:
- image: nginx:latest
- ports:
- - "8080:80"
- 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 \"<html><body style='background: $$COLOR; color: #ffffff; display: flex; align-items: center; justify-content: center; height: 100vh; margin: 0; font-size: 24px;'><h1>Mi color de fondo es $$COLOR</h1></body></html>\" > /usr/share/nginx/html/index.html && nginx -g 'daemon off;'"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement