mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-21 12:49:02 +00:00
Fix web docker
This commit is contained in:
parent
3ea3a1d5eb
commit
48b182aefe
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user