-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace Nginx proxy with Traefik (#3409)
* Replace Nginx with Traefik * Comment Traefik dashboard commands and ports * Fix cvat service port * Simplify traefik dashboard instructions * Add license to docker-compose files * Update all mentions of CVAT_HOST in the docs * Add link to Traefik documentation on router rules * Return base CVAT port to 8080 * Fix spelling in documentation * Fix port indentaion in docker-compose file * Fix Traefik dashboard config * Update changelog * Adapt serverless dockerfile * Update analytics dockerfile * Update analytics docker compose file * Fix linting issues * fixed linter issues Co-authored-by: Andrey Zhavoronkov <andrey.zhavoronkov@intel.com>
- Loading branch information
Showing
10 changed files
with
179 additions
and
363 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (C) 2018-2021 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
version: '3.3' | ||
|
||
services: | ||
cvat: | ||
labels: | ||
- traefik.http.routers.cvat.entrypoints=websecure | ||
- traefik.http.routers.cvat.tls.certresolver=lets-encrypt | ||
|
||
cvat_ui: | ||
labels: | ||
- traefik.http.routers.cvat-ui.entrypoints=websecure | ||
- traefik.http.routers.cvat-ui.tls.certresolver=lets-encrypt | ||
|
||
traefik: | ||
image: traefik:v2.4 | ||
container_name: traefik | ||
command: | ||
- "--providers.docker.exposedByDefault=false" | ||
- "--providers.docker.network=cvat" | ||
- "--entryPoints.web.address=:80" | ||
- "--entryPoints.web.http.redirections.entryPoint.to=websecure" | ||
- "--entryPoints.web.http.redirections.entryPoint.scheme=https" | ||
- "--entryPoints.websecure.address=:443" | ||
- "--certificatesResolvers.lets-encrypt.acme.email=${ACME_EMAIL:?Please set the ACME_EMAIL env variable}" | ||
- "--certificatesResolvers.lets-encrypt.acme.tlsChallenge=true" | ||
- "--certificatesResolvers.lets-encrypt.acme.storage=/letsencrypt/acme.json" | ||
# Uncomment to get Traefik dashboard | ||
# - "--entryPoints.dashboard.address=:8090" | ||
# - "--api.dashboard=true" | ||
ports: | ||
- 80:80 | ||
- 443:443 | ||
volumes: | ||
- cvat_letsencrypt:/letsencrypt | ||
|
||
volumes: | ||
cvat_letsencrypt: |
This file contains 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
This file contains 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
Oops, something went wrong.