Advertisement
ovizii

Untitled

Jul 18th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. . config.properties
  4.  
  5. docker run -d --name $containername \
  6. --expose 80 \
  7. --expose 3012 \
  8. -e SIGNUPS_ALLOWED=false \
  9. -e INVITATIONS_ALLOWED=true \
  10. -e ADMIN_TOKEN=my_secret_token \
  11. -e WEBSOCKET_ENABLED=true \
  12. -e SHOW_PASSWORD_HINT=false \
  13. --restart unless-stopped \
  14. --label traefik.enable=true \
  15. --label traefik.web.frontend.rule=Host:$frontend \
  16. --label traefik.web.port=80 \
  17. --label traefik.hub.frontend.rule="Host:$frontend;Path:/notifications/hub" \
  18. --label traefik.hub.port=3012 \
  19. --label traefik.hub.protocol=ws \
  20. --label traefik.backend=$containername \
  21. -v $datadir/:/data/ \
  22. $imagename
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement