generated from VLADIMIR/template_frontend
fix
This commit is contained in:
+6
-14
@@ -2,30 +2,22 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
evening_detective_frontend:
|
evening_detective_frontend:
|
||||||
image: nginx:alpine
|
image: byjg/static-httpserver:latest
|
||||||
container_name: evening_detective_frontend
|
container_name: evening_detective_frontend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./dist:/usr/share/nginx/html:ro
|
- ./dist:/static
|
||||||
networks:
|
networks:
|
||||||
- crabs-network
|
- crabs-network
|
||||||
ports:
|
ports:
|
||||||
- "8100:80"
|
- "8100:8080"
|
||||||
command: >
|
environment:
|
||||||
sh -c " echo 'server {
|
- SPA_MODE=true
|
||||||
listen 80;
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
index index.html;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files \$uri \$uri/ /index.html;
|
|
||||||
}
|
|
||||||
}' > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;' "
|
|
||||||
labels:
|
labels:
|
||||||
reproxy.1.server: "evening-detective.crabs-games.art"
|
reproxy.1.server: "evening-detective.crabs-games.art"
|
||||||
reproxy.1.route: "/(.*)"
|
reproxy.1.route: "/(.*)"
|
||||||
reproxy.1.dest: "http://evening_detective_frontend:8100/$$1"
|
reproxy.1.dest: "http://evening_detective_frontend:8100/$$1"
|
||||||
reproxy.1.port: "81000"
|
reproxy.1.port: "8100"
|
||||||
reproxy.1.ping: "/"
|
reproxy.1.ping: "/"
|
||||||
reproxy.1.priority: 100
|
reproxy.1.priority: 100
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user