Skip to content

Commit

Permalink
Added instructions how to deploy CVAT behind a proxy (cvat-ai#2009)
Browse files Browse the repository at this point in the history
* added deploy behind a proxy instructions

* fix

* updated toc

* fixed typo
  • Loading branch information
azhavoro authored Aug 11, 2020
1 parent c896463 commit d6ca864
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/analytics/docker-compose.analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ services:
DJANGO_LOG_SERVER_PORT: 5000
DJANGO_LOG_VIEWER_HOST: kibana
DJANGO_LOG_VIEWER_PORT: 5601
no_proxy: kibana,logstash,${no_proxy}
no_proxy: kibana,logstash,nuclio,${no_proxy}

volumes:
cvat_events:
23 changes: 23 additions & 0 deletions cvat/apps/documentation/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- [Windows 10](#windows-10)
- [Mac OS Mojave](#mac-os-mojave)
- [Advanced topics](#advanced-topics)
- [Deploying CVAT behind a proxy](#deploying-cvat-behind-a-proxy)
- [Additional components](#additional-components)
- [Semi-automatic and automatic annotation](#semi-automatic-and-automatic-annotation)
- [Stop all containers](#stop-all-containers)
Expand Down Expand Up @@ -245,6 +246,28 @@ server. Proxy is an advanced topic and it is not covered by the guide.
## Advanced topics
### Deploying CVAT behind a proxy
If you deploy CVAT behind a proxy and do not plan to use any of [serverless functions](#semi-automatic-and-automatic-annotation)
for automatic annotation, the exported environment variables
`http_proxy`, `https_proxy` and `no_proxy` should be enough to build images.
Otherwise please create or edit the file `~/.docker/config.json` in the home directory of the user
which starts containers and add JSON such as the following:
```json
{
"proxies":
{
"default":
{
"httpProxy": "http://proxy_server:port",
"httpsProxy": "http://proxy_server:port",
"noProxy": "*.test.example.com,.example2.com"
}
}
}
```
These environment variables are set automatically within any container.
Please see the [Docker documentation](https://docs.docker.com/network/proxy/) for more details.
### Additional components
- [Analytics: management and monitoring of data annotation team](/components/analytics/README.md)
Expand Down
12 changes: 11 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
args:
http_proxy:
https_proxy:
no_proxy:
no_proxy: nuclio,${no_proxy}
socks_proxy:
USER: "django"
DJANGO_CONFIGURATION: "production"
Expand Down Expand Up @@ -107,10 +107,20 @@ services:
- /tmp:/tmp
- /var/run/docker.sock:/var/run/docker.sock
environment:
http_proxy:
https_proxy:
no_proxy: 172.28.0.1,${no_proxy}
NUCLIO_CHECK_FUNCTION_CONTAINERS_HEALTHINESS: "true"
ports:
- "8070:8070"

networks:
default:
ipam:
config:
- subnet: 172.28.0.0/24
gateway: 172.28.0.1

volumes:
cvat_db:
cvat_data:
Expand Down

0 comments on commit d6ca864

Please sign in to comment.