diff --git a/docker-compose.yml b/docker-compose.yml index 5ac890e..83a909d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,30 +2,22 @@ version: '3.8' services: evening_detective_frontend: - image: nginx:alpine + image: byjg/static-httpserver:latest container_name: evening_detective_frontend restart: unless-stopped volumes: - - ./dist:/usr/share/nginx/html:ro + - ./dist:/static networks: - crabs-network ports: - - "8100:80" - command: > - sh -c " echo 'server { - 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;' " + - "8100:8080" + environment: + - SPA_MODE=true labels: reproxy.1.server: "evening-detective.crabs-games.art" reproxy.1.route: "/(.*)" reproxy.1.dest: "http://evening_detective_frontend:8100/$$1" - reproxy.1.port: "81000" + reproxy.1.port: "8100" reproxy.1.ping: "/" reproxy.1.priority: 100