Merge branch 'main' of https://github.com/BhasherBEL/homelab into main
This commit is contained in:
commit
d322af0d41
|
@ -0,0 +1,35 @@
|
||||||
|
services:
|
||||||
|
joplin-server:
|
||||||
|
container_name: joplin
|
||||||
|
image: joplin/server:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
environment:
|
||||||
|
- APP_PORT=22300
|
||||||
|
- APP_BASE_URL=https://joplin.bhasher.com
|
||||||
|
- DB_CLIENT=pg
|
||||||
|
- POSTGRES_USER=postgres
|
||||||
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
- POSTGRES_DATABASE=joplin
|
||||||
|
- POSTGRES_HOST=postgres
|
||||||
|
- TZ=Europe/Paris
|
||||||
|
ports:
|
||||||
|
- 22300:22300/tcp
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.joplin.rule=Host(`joplin.bhasher.com`)"
|
||||||
|
- "traefik.http.services.joplin.loadbalancer.server.port=22300"
|
||||||
|
- "traefik.http.routers.joplin.tls=true"
|
||||||
|
- "traefik.http.routers.joplin.tls.certresolver=http"
|
||||||
|
- "traefik.http.routers.joplin.entrypoints=internalsecure"
|
||||||
|
networks:
|
||||||
|
- storage
|
||||||
|
- external
|
||||||
|
|
||||||
|
networks:
|
||||||
|
storage:
|
||||||
|
external: true
|
||||||
|
external:
|
||||||
|
external: true
|
|
@ -0,0 +1,28 @@
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
container_name: monica
|
||||||
|
image: monica
|
||||||
|
environment:
|
||||||
|
- APP_KEY=${MONICA_APPKEY}
|
||||||
|
- DB_HOST=mariadb
|
||||||
|
- DB_USERNAME=root
|
||||||
|
- DB_PASSWORD=${MARIADB_ROOT}
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.monica.rule=Host(`monica.bhasher.com`)"
|
||||||
|
- "traefik.http.services.monica.loadbalancer.server.port=80"
|
||||||
|
- "traefik.http.routers.monica.tls=true"
|
||||||
|
- "traefik.http.routers.monica.tls.certresolver=http"
|
||||||
|
- "traefik.http.routers.monica.entrypoints=internalsecure"
|
||||||
|
volumes:
|
||||||
|
- $DATA/monica:/var/www/html/storage
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- storage
|
||||||
|
- external
|
||||||
|
|
||||||
|
networks:
|
||||||
|
external:
|
||||||
|
external: true
|
||||||
|
storage:
|
||||||
|
external: true
|
|
@ -0,0 +1,34 @@
|
||||||
|
services:
|
||||||
|
vaultwarden:
|
||||||
|
image: vaultwarden/server:1.26.0-alpine
|
||||||
|
container_name: vaultwarden
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- $DATA/vaultwarden:/data
|
||||||
|
environment:
|
||||||
|
- DATABASE_URL=${VAULT_DATABASE_URL}
|
||||||
|
- SIGNUPS_ALLOWED=false
|
||||||
|
- DOMAIN=https://vault.bhasher.com
|
||||||
|
- ADMIN_TOKEN=${VAULT_ADMIN}
|
||||||
|
- SMTP_HOST=bdubois.io
|
||||||
|
- SMTP_FROM=no-reply@bhasher.com
|
||||||
|
- SMTP_PORT=587
|
||||||
|
- SMTP_SECURITY=starttls
|
||||||
|
- SMTP_USERNAME=${SMTP_USER}
|
||||||
|
- SMTP_PASSWORD=${SMTP_PASSWORD}
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.vaultwarden.rule=Host(`vault.bhasher.com`)"
|
||||||
|
- "traefik.http.routers.vaultwarden.entrypoints=internalsecure"
|
||||||
|
- "traefik.http.services.vaultwarden.loadbalancer.server.port=80"
|
||||||
|
- "traefik.http.routers.vaultwarden.tls=true"
|
||||||
|
- "traefik.http.routers.vaultwarden.tls.certresolver=http"
|
||||||
|
networks:
|
||||||
|
- external
|
||||||
|
- storage
|
||||||
|
|
||||||
|
networks:
|
||||||
|
external:
|
||||||
|
external: true
|
||||||
|
storage:
|
||||||
|
external: true
|
|
@ -1,14 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Start Borg Backup Container
|
|
||||||
After=docker.service
|
|
||||||
ConditionPathExists=/mnt/borg
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/bin/docker start borg
|
|
||||||
User=pi
|
|
||||||
Group=pi
|
|
||||||
Restart=no
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
|
@ -1,9 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Run Borg Backup at 4 a.m. every day
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnCalendar=*-*-* 04:00:00
|
|
||||||
Persistent=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
|
@ -46,11 +46,6 @@ sections:
|
||||||
url: https://element.bhasher.com
|
url: https://element.bhasher.com
|
||||||
statusCheckUrl: http://matrix-riot
|
statusCheckUrl: http://matrix-riot
|
||||||
id: 4_1507_elementweb
|
id: 4_1507_elementweb
|
||||||
- title: Shlink
|
|
||||||
icon: hl-shlink
|
|
||||||
url: https://shlink.bhasher.com
|
|
||||||
statusCheckUrl: https://shlink_ui
|
|
||||||
id: 5_1507_shlink
|
|
||||||
- name: Private services
|
- name: Private services
|
||||||
displayData:
|
displayData:
|
||||||
sortBy: most-used
|
sortBy: most-used
|
||||||
|
@ -118,25 +113,30 @@ sections:
|
||||||
icon: hl-portainer
|
icon: hl-portainer
|
||||||
url: https://portainer.vps.bhasher.com
|
url: https://portainer.vps.bhasher.com
|
||||||
id: 11_1631_portainervps
|
id: 11_1631_portainervps
|
||||||
- title: Portainer (LLN)
|
|
||||||
icon: hl-portainer
|
|
||||||
url: https://portainer.lln.bhasher.com
|
|
||||||
id: 12_1631_portainerlln
|
|
||||||
- title: Home assistant
|
- title: Home assistant
|
||||||
icon: hl-home-assistant
|
icon: hl-home-assistant
|
||||||
url: https://hass.bhasher.com
|
url: https://hass.bhasher.com
|
||||||
statusCheckUrl: http://hass:8123
|
statusCheckUrl: http://hass:8123
|
||||||
id: 13_1631_homeassistant
|
id: 12_1631_homeassistant
|
||||||
- title: Node-red
|
- title: Node-red
|
||||||
icon: hl-node-red
|
icon: hl-node-red
|
||||||
url: https://nodered.bhasher.com
|
url: https://nodered.bhasher.com
|
||||||
statusCheckUrl: http://nodered:1880
|
statusCheckUrl: http://nodered:1880
|
||||||
id: 14_1631_nodered
|
id: 13_1631_nodered
|
||||||
- title: Planka
|
- title: Planka
|
||||||
icon: hl-planka
|
icon: hl-planka
|
||||||
url: https://planka.bhasher.com
|
url: https://planka.bhasher.com
|
||||||
statusCheckUrl: http://planka:1337
|
statusCheckUrl: http://planka:1337
|
||||||
id: 15_1631_planka
|
id: 14_1631_planka
|
||||||
|
- title: Monica
|
||||||
|
icon: hl-monica
|
||||||
|
url: https://monica.bhasher.com
|
||||||
|
statusCheck: true
|
||||||
|
id: 15_1631_monica
|
||||||
|
- title: Vaultwarden
|
||||||
|
icon: hl-vaultwarden
|
||||||
|
url: https://vault.bhasher.com
|
||||||
|
id: 16_1631_vaultwarden
|
||||||
- name: System services
|
- name: System services
|
||||||
displayData:
|
displayData:
|
||||||
sortBy: most-used
|
sortBy: most-used
|
||||||
|
|
|
@ -5,7 +5,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- $DATA:/mnt/source:ro
|
- $DATA:/mnt/source:ro
|
||||||
- $BACKUP:/mnt/borg-repository:rw
|
- $BACKUP/shp:/mnt/borg-repository:rw
|
||||||
- $CONFIG/borgmatic/etc:/etc/borgmatic.d
|
- $CONFIG/borgmatic/etc:/etc/borgmatic.d
|
||||||
- $DATA/borgmatic/borg:/root/.config/borg
|
- $DATA/borgmatic/borg:/root/.config/borg
|
||||||
- $DATA/borgmatic/ssh:/root/.ssh
|
- $DATA/borgmatic/ssh:/root/.ssh
|
||||||
|
@ -19,3 +19,21 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- storage
|
- storage
|
||||||
|
|
||||||
|
borgmatic-vps:
|
||||||
|
container_name: borgmatic-vps
|
||||||
|
image: ghcr.io/borgmatic-collective/borgmatic:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
volumes:
|
||||||
|
- /mnt/vps:/mnt/source:ro
|
||||||
|
- $BACKUP/vps:/mnt/borg-repository:rw
|
||||||
|
- $CONFIG/borgmatic/etc:/etc/borgmatic.d
|
||||||
|
- $DATA/borgmatic-vps/borg:/root/.config/borg
|
||||||
|
- $DATA/borgmatic-vps/ssh:/root/.ssh
|
||||||
|
- $DATA/borgmatic-vps/cache:/root/.cache/borg
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Paris
|
||||||
|
- BORG_PASSPHRASE=none
|
||||||
|
- BACKUP_CRON=0 5 * * *
|
||||||
|
- RUN_ON_STARTUP=true
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue