Skip to content

Commit

Permalink
Fix/traefik pathprefix (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
noctera authored and luwol03 committed Jan 22, 2022
1 parent 2270afe commit a1cf0b9
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docker/traefik/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "3.8"
version: '3.8'
services:
traefik:
image: traefik:v2.2
Expand All @@ -14,8 +14,8 @@ services:
- ./traefik_dynamic.toml:/traefik_dynamic.toml
- ./acme.json:/acme.json
labels:
- "traefik.frontend.rule=Host:monitor.your_domain.com"
- "traefik.http.services.traefik.loadbalancer.server.port=8080"
- 'traefik.frontend.rule=Host:monitor.your_domain.com'
- 'traefik.http.services.traefik.loadbalancer.server.port=8080'
networks:
- web
vocascan:
Expand All @@ -25,27 +25,27 @@ services:
depends_on:
- db
environment:
VOCASCAN_CONFIG: "/etc/vocascan/vocascan.config.js"
VOCASCAN_CONFIG: '/etc/vocascan/vocascan.config.js'
volumes:
- "./vocascan.config.js:/etc/vocascan/vocascan.config.js:ro"
- './vocascan.config.js:/etc/vocascan/vocascan.config.js:ro'
labels:
- "traefik.http.routers.vocascan.rule=Host(`web.your_domain.com`)"
- "traefik.http.routers.vocascan.tls=true"
- "traefik.http.routers.vocascan.tls.certresolver=lets-encrypt"
- "traefik.http.services.vocascan.loadbalancer.server.port=8000"
- 'traefik.http.routers.vocascan.rule=Host(`your_domain.com`) && PathPrefix(`/p/`, `/api`)'
- 'traefik.http.routers.vocascan.tls=true'
- 'traefik.http.routers.vocascan.tls.certresolver=lets-encrypt'
- 'traefik.http.services.vocascan.loadbalancer.server.port=8000'
networks:
- internal
- web
db:
image: postgres
environment:
POSTGRES_USER: "vocascan"
POSTGRES_PASSWORD: "vocascan"
POSTGRES_DB: "vocascan"
POSTGRES_USER: 'vocascan'
POSTGRES_PASSWORD: 'vocascan'
POSTGRES_DB: 'vocascan'
volumes:
- "./database:/var/lib/postgresql/data"
- './database:/var/lib/postgresql/data'
labels:
- "traefik.enable=false"
- 'traefik.enable=false'
networks:
- internal
networks:
Expand Down

0 comments on commit a1cf0b9

Please sign in to comment.