Skip to content

Commit

Permalink
Update docker-compose.yml to use version 3 and add support for HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne committed Feb 13, 2024
1 parent e9c0635 commit 6c6ab9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: "3"
services:
traefik:
image: traefik
Expand All @@ -8,8 +8,10 @@ services:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
ports:
- "80:80"
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Expand Down Expand Up @@ -64,7 +66,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=HostRegexp(`{any:.*}`)"
- "traefik.http.routers.frontend.entrypoints=web"
- "traefik.http.routers.frontend.entrypoints=web,websecure"
- "traefik.http.services.frontend.loadbalancer.server.port=3000"
networks:
- web
Expand Down

0 comments on commit 6c6ab9b

Please sign in to comment.