-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: extend using proxy section (#4368)
# Description This PR adds examples to the docs on how to use `NGINX` and `Traefik` as reverse proxy for Argilla server. Closes #3706 **Type of change** - [x] Documentation update **How Has This Been Tested** - [x] `sphinx-autobuild` (read [Developer Documentation](https://docs.argilla.io/en/latest/community/developer_docs.html#building-the-documentation) for more details) **Checklist** - [x] I added relevant documentation - [x] I followed the style guidelines of this project - [x] I did a self-review of my code - [x] I made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK) (see text above) - [ ] I have added relevant notes to the `CHANGELOG.md` file (See https://keepachangelog.com/)
- Loading branch information
1 parent
75af84d
commit 3da7e20
Showing
4 changed files
with
71 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: "3.8" | ||
|
||
services: | ||
nginx: | ||
image: nginx:latest | ||
container_name: "nginx_proxy" | ||
ports: | ||
- "80:80" | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf:ro | ||
|
||
argilla: | ||
image: argilla/argilla-quickstart:latest | ||
environment: | ||
ARGILLA_ENABLE_TELEMETRY: 0 | ||
ARGILLA_BASE_URL: /argilla | ||
ports: | ||
- "6900:6900" |
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,15 @@ | ||
events {} | ||
|
||
http { | ||
server { | ||
listen 80; | ||
|
||
location /argilla/ { | ||
proxy_pass http://argilla:6900/; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
} | ||
} | ||
} |
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,31 @@ | ||
version: "3.8" | ||
|
||
services: | ||
traefik: | ||
image: "traefik:v2.10" | ||
container_name: "traefik" | ||
command: | ||
#- "--log.level=DEBUG" | ||
- "--api.insecure=true" | ||
- "--providers.docker=true" | ||
- "--providers.docker.exposedbydefault=false" | ||
- "--entrypoints.web.address=:80" | ||
ports: | ||
- "80:80" | ||
- "8080:8080" | ||
volumes: | ||
- "/var/run/docker.sock:/var/run/docker.sock:ro" | ||
|
||
argilla: | ||
image: argilla/argilla-quickstart:latest | ||
environment: | ||
ARGILLA_ENABLE_TELEMETRY: 0 | ||
ARGILLA_BASE_URL: /argilla | ||
labels: | ||
- "traefik.enable=true" | ||
- "traefik.http.routers.argilla.rule=PathPrefix(`/argilla/`)" | ||
- "traefik.http.routers.argilla.entrypoints=web" | ||
- "traefik.http.services.argilla.loadbalancer.server.port=6900" | ||
- "traefik.http.middlewares.argilla-stripprefix.stripprefix.prefixes=/argilla" | ||
- "traefik.http.middlewares.argilla-stripprefix.stripprefix.forceSlash=false" | ||
- "traefik.http.routers.argilla.middlewares=argilla-stripprefix" |
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