Skip to content

Instantly share code, notes, and snippets.

@xgenvn
Created February 5, 2020 01:58
Show Gist options
  • Select an option

  • Save xgenvn/16a82a2933eae148d533c79e654cc884 to your computer and use it in GitHub Desktop.

Select an option

Save xgenvn/16a82a2933eae148d533c79e654cc884 to your computer and use it in GitHub Desktop.
Simple serve static with basic auth
version: "3"
services:
aline-fe:
image: pierrezemb/gostatic
restart: unless-stopped
command: -enable-basic-auth -set-basic-auth username:password
volumes:
- ./dist:/srv/http
ports:
- 80:8043
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment