Merge pull request #26 from sethforprivacy/app/joplin/expose
Properly expose Joplin
This commit is contained in:
commit
276124f7c8
|
@ -2,6 +2,7 @@
|
||||||
"$schema": "../schema.json",
|
"$schema": "../schema.json",
|
||||||
"name": "Joplin Server",
|
"name": "Joplin Server",
|
||||||
"available": true,
|
"available": true,
|
||||||
|
"exposable": true,
|
||||||
"port": 8099,
|
"port": 8099,
|
||||||
"id": "joplin",
|
"id": "joplin",
|
||||||
"tipi_version": 1,
|
"tipi_version": 1,
|
||||||
|
@ -12,5 +13,14 @@
|
||||||
"author": "https://github.com/laurent22",
|
"author": "https://github.com/laurent22",
|
||||||
"source": "https://github.com/laurent22/joplin",
|
"source": "https://github.com/laurent22/joplin",
|
||||||
"website": "https://joplinapp.org",
|
"website": "https://joplinapp.org",
|
||||||
"form_fields": []
|
"form_fields": [
|
||||||
|
{
|
||||||
|
"type": "random",
|
||||||
|
"label": "Joplin DB password",
|
||||||
|
"max": 50,
|
||||||
|
"min": 8,
|
||||||
|
"required": true,
|
||||||
|
"env_variable": "JOPLIN_DB_PASSWORD"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=tipi
|
- POSTGRES_PASSWORD=${JOPLIN_DB_PASSWORD}
|
||||||
- POSTGRES_USER=tipi
|
- POSTGRES_USER=tipi
|
||||||
- POSTGRES_DB=joplin
|
- POSTGRES_DB=joplin
|
||||||
networks:
|
networks:
|
||||||
|
@ -26,9 +26,9 @@ services:
|
||||||
- ${DNS_IP}
|
- ${DNS_IP}
|
||||||
environment:
|
environment:
|
||||||
- APP_PORT=22300
|
- APP_PORT=22300
|
||||||
- APP_BASE_URL=http://${INTERNAL_IP}:${APP_PORT}
|
- APP_BASE_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}/
|
||||||
- DB_CLIENT=pg
|
- DB_CLIENT=pg
|
||||||
- POSTGRES_PASSWORD=tipi
|
- POSTGRES_PASSWORD=${JOPLIN_DB_PASSWORD}
|
||||||
- POSTGRES_USER=tipi
|
- POSTGRES_USER=tipi
|
||||||
- POSTGRES_DATABASE=joplin
|
- POSTGRES_DATABASE=joplin
|
||||||
- POSTGRES_PORT=5432
|
- POSTGRES_PORT=5432
|
||||||
|
@ -36,3 +36,13 @@ services:
|
||||||
- MAX_TIME_DRIFT=0
|
- MAX_TIME_DRIFT=0
|
||||||
networks:
|
networks:
|
||||||
- tipi_main_network
|
- tipi_main_network
|
||||||
|
labels:
|
||||||
|
traefik.enable: ${APP_EXPOSED}
|
||||||
|
traefik.http.routers.joplin.rule: Host(`${APP_DOMAIN}`)
|
||||||
|
traefik.http.routers.joplin.entrypoints: websecure
|
||||||
|
traefik.http.routers.joplin.service: joplin
|
||||||
|
traefik.http.routers.joplin.tls.certresolver: myresolver
|
||||||
|
traefik.http.services.joplin.loadbalancer.server.port: 22300
|
||||||
|
traefik.http.services.joplin.loadbalancer.passhostheader: true
|
||||||
|
traefik.http.middlewares.joplin-sslheader.headers.customrequestheaders.X-Forwarded-Proto: http
|
||||||
|
traefik.http.routers.joplin-sslheader.middlewares: joplin-sslheader@docker
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: '3.7'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
vaultwarden:
|
vaultwarden:
|
||||||
image: vaultwarden/server:1.25.1
|
image: vaultwarden/server:1.25.2
|
||||||
container_name: vaultwarden
|
container_name: vaultwarden
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user