Skip to content

Commit

Permalink
port changed
Browse files Browse the repository at this point in the history
  • Loading branch information
jayasankar committed Mar 18, 2024
1 parent 2ea459f commit 7b10585
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
6 changes: 3 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ services:
- VACHAN_AI_BASEPATH=/v2/ai
- VACHAN_DOMAIN=${VACHAN_DOMAIN:-http://localhost}
- VACHAN_AI_DOMAIN=http://vachan-api
command: uvicorn main:app --host 0.0.0.0 --port 8006
command: uvicorn main:app --host 0.0.0.0 --port 8008
volumes:
- ${VACHAN_AI_DATA_PATH}/docker-volumes/ai-logs-vol:/app/logs
- ${VACHAN_AI_DATA_PATH}/cache:/root/.cache
Expand All @@ -398,9 +398,9 @@ services:
- local-run
- deployment
expose:
- 8006
- 8008
ports:
- "8006:8006"
- "8008:8008"
networks:
- VE-network
container_name: vachan-ai
Expand Down
9 changes: 5 additions & 4 deletions docker/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ server {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
}

location /v2/ai/ {
proxy_pass http://vachan-ai:8008;
}

location /v2/auth/ {
proxy_pass http://vachan-access:8007;
}

location /v2/ai/ {
proxy_pass http://vachan-ai:8006;
}


location /v2/cms/rest/ {
proxy_pass http://vachan-cms-rest:8005;
Expand Down
8 changes: 4 additions & 4 deletions docker/nginx/prod/app.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ server {
ssl_certificate_key /etc/nginx/ssl/live/${VACHAN_DOMAIN}/privkey.pem;


location /v2/auth/ {
proxy_pass http://vachan-access:8007;
location /v2/ai/ {
proxy_pass http://vachan-ai:8008;
}

location /v2/ai/ {
proxy_pass http://vachan-ai:8006;
location /v2/auth/ {
proxy_pass http://vachan-access:8007;
}

location /v2/cms/rest/ {
Expand Down

0 comments on commit 7b10585

Please sign in to comment.