Skip to content

Commit

Permalink
fix(docker-compose): fix traefik routing
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuphi committed Mar 23, 2021
1 parent 37e8a09 commit b59f1a2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
version: "3"
version: "3.3"

services:
traefik:
image: traefik:v2.2
command:
- --api.insecure=true
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --api.insecure
- --providers.docker
- --entrypoints.web.address=:80
ports:
- 80:80
Expand All @@ -21,7 +20,5 @@ services:
working_dir: /var/www/app
command: sh -c "npm install && npm run dev"
labels:
- traefik.enable=true
- traefik.http.routers.api.rule=Host(`api.localhost`)
expose:
- 3000
- traefik.http.services.api.loadbalancer.server.port=3000

0 comments on commit b59f1a2

Please sign in to comment.