Merge pull request #1729 from RoboSats/fix-web-docker
Some checks failed
Lint: Python Coordinator / Run linters (push) Has been cancelled

Fix web docker
This commit is contained in:
KoalaSat 2025-02-12 21:46:06 +00:00 committed by GitHub
commit e30fa6ab98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 8 deletions

View File

@ -5,16 +5,17 @@ services:
frontend:
build: ../frontend
container_name: web-dev-frontend
restart: always
command: npm run dev
volumes:
- ../frontend:/usr/src/frontend
- ./:/usr/src/web
nginx:
build: .
container_name: web-dev-nginx
restart: always
volumes:
- ./:/usr/src/robosats/
- ./:/usr/src/web
- ./nginx.conf:/etc/nginx/nginx.conf
- ./coordinators/:/etc/nginx/conf.d/
ports:
- 80:80
- 8080:80

View File

@ -32,19 +32,19 @@ http {
server_name robosats_web_client;
location / {
root /usr/src/robosats;
root /usr/src/web;
try_files $uri $uri/ /basic.html;
index basic.html;
}
location /pro {
root /usr/src/robosats;
root /usr/src/web;
try_files $uri $uri/ /pro.html;
index pro.html;
}
location /static/ {
alias /usr/src/robosats/static/;
alias /usr/src/web/static/;
autoindex on;
}
@ -53,7 +53,7 @@ http {
}
location = /favicon.ico {
alias /usr/src/robosats/static/assets/images/favicon-96x96.png;
alias /usr/src/web/static/assets/images/favicon-96x96.png;
}
}
}