Created
July 25, 2021 08:08
-
-
Save vranystepan/b7f8424ba73cf6e7ede7fc40a2e51a37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
frontend: | |
image: nginx | |
labels: | |
- traefik.http.routers.frontend.rule=Host(`lab01.stepanvrany.cz`) | |
- traefik.http.routers.frontend.tls=true | |
- traefik.http.routers.frontend.tls.certresolver=le | |
backend: | |
image: nginx | |
volumes: | |
- ./www/api:/usr/share/nginx/html | |
labels: | |
- traefik.http.routers.backend.rule=Host(`lab01.stepanvrany.cz`) && PathPrefix(`/api`) | |
- traefik.http.routers.backend.tls=true | |
- traefik.http.routers.backend.tls.certresolver=le |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment