wip: production

This commit is contained in:
Ewen 2024-05-14 07:45:41 +02:00
parent bd5ae3cbc3
commit 032faae19c

View file

@ -6,6 +6,8 @@ services:
context: ./api
dockerfile: Dockerfile
target: final
ports:
- 8080:8080
frontend:
env_file:
@ -16,7 +18,18 @@ services:
target: final
args:
- VITE_API_ENDPOINT=${VITE_API_ENDPOINT}
ports:
- 5173:5173
volumes:
- ./frontend/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./frontend/nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
- traefik_net
- default
labels:
- "traefik.enable=true"
- "traefik.http.routers.rudibridge.rule=Host(`${TRAEFIK_HOST}`)"
- "traefik.http.routers.rudibridge.entrypoints=http"
- "traefik.http.routers.rudibridgetls.rule=Host(`${TRAEFIK_HOST}`)"
- "traefik.http.routers.rudibridgetls.entrypoints=https"
- "traefik.http.routers.rudibridgetls.tls=true"
- "traefik.http.routers.rudibridgetls.tls.certresolver=${TRAEFIK_CERTRESOLVER}"
- "traefik.http.routers.rudibridgetls.tls.domains[0].main=${TRAEFIK_HOST}"
- "traefik.docker.network=traefik_net"