This commit is contained in:
Lukian LEIZOUR 2024-10-07 19:37:25 +01:00
parent afc5217d0a
commit 8ac3ef78b0
2 changed files with 18 additions and 18 deletions

View file

@ -6,7 +6,19 @@ services:
network: host
restart: always
image: joclud_api
ports:
- "3000:3000"
- "443:443"
container_name: joclud_api
expose:
- 80
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.joclud.rule=Host(`api.joclud.leizour.fr`)"
- "traefik.http.routers.joclud.entrypoints=websecure"
- "traefik.http.routers.joclud.tls=true"
- "traefik.http.routers.joclud.tls.certresolver=myresolver"
- "traefik.http.services.joclud.loadbalancer.server.port=80"
container_name: joclud_api
networks:
traefik:
external: true