This commit is contained in:
2026-03-02 20:19:21 +01:00
parent 061f6173f3
commit 1ca7545ac7
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -11,4 +11,4 @@ RUN chmod +x ./entrypoint.sh
RUN curl -fLo install.sh https://raw.githubusercontent.com/cosmtrek/air/master/install.sh \
&& chmod +x install.sh && sh install.sh && cp ./bin/air /bin/air
CMD "./entrypoint.sh"
CMD ["./entrypoint.sh"]
+4 -2
View File
@@ -117,8 +117,10 @@ services:
- /app/node_modules
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`${WEBAPP_DOMAIN}`) && PathPrefix(`/`) && PathPrefixStrip(`/api`)==false"
- "traefik.http.routers.frontend.rule=Host(`${WEBAPP_DOMAIN}`)"
- "traefik.http.routers.frontend.entrypoints=web"
- "traefik.http.routers.frontend.middlewares=frontend-stripprefix@docker"
- "traefik.http.middlewares.frontend-stripprefix.stripprefix.prefixes=/api"
- "traefik.http.services.frontend.loadbalancer.server.port=3000"
- "traefik.docker.network=proxy"
networks:
@@ -142,7 +144,7 @@ services:
condition: service_healthy
volumes:
- ./data/softwares:/softwares
- ./:/app
- ./apps/catalog:/app
labels:
- "traefik.enable=true"
- "traefik.http.routers.catalog.rule=Host(`${WEBAPP_DOMAIN}`) && PathPrefix(`/api`)"