fix(databag): add correct network and traefik labels
This commit is contained in:
parent
6acd361bc5
commit
9410b2b73b
|
@ -3,7 +3,7 @@
|
||||||
"name": "Databag",
|
"name": "Databag",
|
||||||
"available": true,
|
"available": true,
|
||||||
"exposable": true,
|
"exposable": true,
|
||||||
"port": 7000,
|
"port": 8201,
|
||||||
"id": "databag",
|
"id": "databag",
|
||||||
"tipi_version": 2,
|
"tipi_version": 2,
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
|
|
|
@ -7,3 +7,32 @@ services:
|
||||||
- ${APP_PORT}:7000
|
- ${APP_PORT}:7000
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_DATA_DIR}/data/databag:/var/lib/databag
|
- ${APP_DATA_DIR}/data/databag:/var/lib/databag
|
||||||
|
networks:
|
||||||
|
- tipi_main_network
|
||||||
|
labels:
|
||||||
|
# Main
|
||||||
|
traefik.enable: true
|
||||||
|
traefik.http.middlewares.databag-web-redirect.redirectscheme.scheme: https
|
||||||
|
traefik.http.services.databag.loadbalancer.server.port: 7000
|
||||||
|
# Web
|
||||||
|
traefik.http.routers.databag-insecure.rule: Host(`${APP_DOMAIN}`)
|
||||||
|
traefik.http.routers.databag-insecure.entrypoints: web
|
||||||
|
traefik.http.routers.databag-insecure.service: databag
|
||||||
|
traefik.http.routers.databag-insecure.middlewares: databag-web-redirect
|
||||||
|
# Websecure
|
||||||
|
traefik.http.routers.databag.rule: Host(`${APP_DOMAIN}`)
|
||||||
|
traefik.http.routers.databag.entrypoints: websecure
|
||||||
|
traefik.http.routers.databag.service: databag
|
||||||
|
traefik.http.routers.databag.tls.certresolver: myresolver
|
||||||
|
# Local domain
|
||||||
|
traefik.http.routers.databag-local-insecure.rule: Host(`databag.${LOCAL_DOMAIN}`)
|
||||||
|
traefik.http.routers.databag-local-insecure.entrypoints: web
|
||||||
|
traefik.http.routers.databag-local-insecure.service: databag
|
||||||
|
traefik.http.routers.databag-local-insecure.middlewares: databag-web-redirect
|
||||||
|
# Local domain secure
|
||||||
|
traefik.http.routers.databag-local.rule: Host(`databag.${LOCAL_DOMAIN}`)
|
||||||
|
traefik.http.routers.databag-local.entrypoints: websecure
|
||||||
|
traefik.http.routers.databag-local.service: databag
|
||||||
|
traefik.http.routers.databag-local.tls: true
|
||||||
|
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Loading…
Reference in New Issue
Block a user