Update Peppermint (#1813)
* Update Peppermint * Update Peppermint * Update ports
This commit is contained in:
parent
47cfbc19b1
commit
00f87dc91b
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"$schema": "../schema.json",
|
"$schema": "../schema.json",
|
||||||
"name": "Peppermint",
|
"name": "Peppermint",
|
||||||
"port": 8176,
|
"port": 8216,
|
||||||
"available": true,
|
"available": true,
|
||||||
"exposable": true,
|
"exposable": true,
|
||||||
"id": "peppermint",
|
"id": "peppermint",
|
||||||
"tipi_version": 3,
|
"tipi_version": 5,
|
||||||
"version": "latest",
|
"version": "latest",
|
||||||
"categories": [
|
"categories": [
|
||||||
"utilities"
|
"utilities"
|
||||||
|
@ -20,7 +20,14 @@
|
||||||
"label": "Peppermint DB Password",
|
"label": "Peppermint DB Password",
|
||||||
"min": 32,
|
"min": 32,
|
||||||
"env_variable": "PEPPERMINT_DB_PASSWORD"
|
"env_variable": "PEPPERMINT_DB_PASSWORD"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "text",
|
||||||
|
"label": "API URL",
|
||||||
|
"required": true,
|
||||||
|
"hint": "Can be an exposable domiain like peppermintapi.example.com or peppermintapi.tipi.local",
|
||||||
|
"env_variable": "PEPPERMINT_DOMAIN_API"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"supported_architectures": ["amd64"]
|
"supported_architectures": ["amd64", "arm64"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,14 +5,14 @@ services:
|
||||||
image: pepperlabs/peppermint:latest
|
image: pepperlabs/peppermint:latest
|
||||||
container_name: peppermint
|
container_name: peppermint
|
||||||
environment:
|
environment:
|
||||||
- PORT=5000
|
|
||||||
- DB_USERNAME=tipi
|
- DB_USERNAME=tipi
|
||||||
- DB_PASSWORD=${PEPPERMINT_DB_PASSWORD}
|
- DB_PASSWORD=${PEPPERMINT_DB_PASSWORD}
|
||||||
- DB_HOST=peppermint-db
|
- DB_HOST=peppermint-db
|
||||||
- BASE_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
|
- API_URL={APP_PROTOCOL:-http}://${PEPPERMINT_DOMAIN_API}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- ${APP_PORT}:5000
|
- ${APP_PORT}:3000
|
||||||
|
- 8217:5003
|
||||||
depends_on:
|
depends_on:
|
||||||
- peppermint-db
|
- peppermint-db
|
||||||
networks:
|
networks:
|
||||||
|
@ -21,7 +21,7 @@ services:
|
||||||
# Main
|
# Main
|
||||||
traefik.enable: true
|
traefik.enable: true
|
||||||
traefik.http.middlewares.peppermint-web-redirect.redirectscheme.scheme: https
|
traefik.http.middlewares.peppermint-web-redirect.redirectscheme.scheme: https
|
||||||
traefik.http.services.peppermint.loadbalancer.server.port: 5000
|
traefik.http.services.peppermint.loadbalancer.server.port: 3000
|
||||||
# Web
|
# Web
|
||||||
traefik.http.routers.peppermint-insecure.rule: Host(`${APP_DOMAIN}`)
|
traefik.http.routers.peppermint-insecure.rule: Host(`${APP_DOMAIN}`)
|
||||||
traefik.http.routers.peppermint-insecure.entrypoints: web
|
traefik.http.routers.peppermint-insecure.entrypoints: web
|
||||||
|
@ -42,6 +42,29 @@ services:
|
||||||
traefik.http.routers.peppermint-local.entrypoints: websecure
|
traefik.http.routers.peppermint-local.entrypoints: websecure
|
||||||
traefik.http.routers.peppermint-local.service: peppermint
|
traefik.http.routers.peppermint-local.service: peppermint
|
||||||
traefik.http.routers.peppermint-local.tls: true
|
traefik.http.routers.peppermint-local.tls: true
|
||||||
|
#API URL
|
||||||
|
traefik.http.middlewares.peppermint-api-web-redirect.redirectscheme.scheme: https
|
||||||
|
traefik.http.services.peppermint-api.loadbalancer.server.port: 5003
|
||||||
|
# Web
|
||||||
|
traefik.http.routers.peppermint-api-insecure.rule: Host(`${PEPPERMINT_DOMAIN_API}`)
|
||||||
|
traefik.http.routers.peppermint-api-insecure.entrypoints: web
|
||||||
|
traefik.http.routers.peppermint-api-insecure.service: peppermint
|
||||||
|
traefik.http.routers.ppeppermint-api-insecure.middlewares: peppermint-api-web-redirect
|
||||||
|
# Websecure
|
||||||
|
traefik.http.routers.peppermint-api.rule: Host(`${PEPPERMINT_DOMAIN_API}`)
|
||||||
|
traefik.http.routers.peppermint-api.entrypoints: websecure
|
||||||
|
traefik.http.routers.peppermint-api.service: peppermint
|
||||||
|
traefik.http.routers.peppermint-api.tls.certresolver: myresolver
|
||||||
|
# Local domain
|
||||||
|
traefik.http.routers.peppermint-api-local-insecure.rule: Host(`peppermintapi.${LOCAL_DOMAIN}`)
|
||||||
|
traefik.http.routers.peppermint-api-local-insecure.entrypoints: web
|
||||||
|
traefik.http.routers.peppermint-api-local-insecure.service: peppermint
|
||||||
|
traefik.http.routers.peppermint-api-local-insecure.middlewares: peppermint-api-web-redirect
|
||||||
|
# Local domain secure
|
||||||
|
traefik.http.routers.peppermint-api-local.rule: Host(`peppermintapi.${LOCAL_DOMAIN}`)
|
||||||
|
traefik.http.routers.peppermint-api-local.entrypoints: websecure
|
||||||
|
traefik.http.routers.peppermint-api-local.service: peppermint
|
||||||
|
traefik.http.routers.peppermint-api-local.tls: true
|
||||||
|
|
||||||
peppermint-db:
|
peppermint-db:
|
||||||
container_name: peppermint-db
|
container_name: peppermint-db
|
||||||
|
|
Loading…
Reference in New Issue
Block a user