42 lines
1.2 KiB
Markdown
42 lines
1.2 KiB
Markdown
# Traefik reverse proxy for analysis framework
|
|
|
|
## Usage (default: http)
|
|
|
|
1. `cd traefik`
|
|
2. `editor docker-compose.yml`
|
|
* Adjust the *traefik.frontend.rule* label for the traefik dashboard
|
|
* Default (match any):
|
|
* traefik.localhost
|
|
* traefik.potato.kinf.wiai.uni-bamberg.de
|
|
* Adjust port mapping
|
|
* Default:
|
|
* 80 → 80
|
|
* Syntax: <host-port>:<container-port>
|
|
3. `docker-compose up -d`
|
|
4. `cd ../..`
|
|
5. `editor docker-compose.yml`
|
|
* adjust the *traefik.url.frontend.rule* labels for services *app* and *nginx*
|
|
* adjust the urls in *selector/config.py* accordingly
|
|
6. `docker-compose up -d`
|
|
7. You have a working analysis framework setup now
|
|
* Stop with `docker-compose down`
|
|
* Start with `docker-compose up -d`
|
|
|
|
## Usage (https)
|
|
|
|
1. Be on a host with port 80 available from the internet
|
|
2. Follw HTTP usage above up to step 2
|
|
3. Add acme.json volume:
|
|
* Uncomment the line for the acme.json volume
|
|
* Adjust the host path
|
|
* Syntax: <host-path>:<container-path>
|
|
4. Create acme.json
|
|
* touch acme.json
|
|
* chmod 600 acme.json
|
|
5. Activate traefiks ACME module
|
|
* `mv config.toml config_http.toml`
|
|
* `mv config_acme.toml config.toml`
|
|
* `editor config.toml`
|
|
* Adjust the *acme.email* value
|
|
6. Continue with HTTP Usage steps 3 +
|