git clone https://github.com/dcomposed/proxi.git && cd proxi
docker-compose up -drunning docker-compose ps will show three containers:
- traefik - Edge Router / modern HTTP reverse proxy
- portainer - docker container management interface
- watchtower - to automatically upgrade Portainer (?and traefik?)
Without changing the config files you can go to:
- http://traefik.localhost (default user/pass is admin/12345)
- http://portainer.localhost (create your own user account on first visit) --note: lets encrypt will not work on localhost so you will need to "proceed anyway" past your browsers https warnings
If you want to customize the configs (and not commit your likely private changes back to any repo), you can first run:
./scripts/ignore.sh to avoid changes showing up in git status.
- Adapt traefik.toml with your domain and email
- Adapt .env
- with your BASE_HOSTNAME (traefik and portainer will be prepended by default)
- with a different user/pass for auth
- (to generate, use
./scripts/makepw.sh yourusername yoursecurepasswd)
- (to generate, use
- Adapt docker-compose.yml
- adapt the network name if you want/need an alternative name
- adapt the subdomain hostname of the containers (traefik and portainer by default):
- traefik.frontend.rule=Host:YOURCHOSENHOST.${BASE_HOSTNAME:-localhost}
networks:
haven:
external:
name: haven
service:
networks:
- haven
labels:
- traefik.enable=true
- traefik.frontend.rule=Host:www.example.com #,more.comma.sep
- traefik.port=80 # port exposed by container
- traefik.docker.network=haven # docker network name