Migrate Etebase to python

This commit is contained in:
Viyurz 2024-10-14 09:55:00 +02:00
parent d284cc2005
commit 413ddb9622
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8
4 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,16 @@
services:
etebase:
container_name: etebase
image: docker.io/victorrds/etebase:alpine
network_mode: pasta:-a,${env['pasta']['etebase']['ipv4']},-a,${env['pasta']['etebase']['ipv6']}
restart: always
user: ${env['users']['etebase']}:${env['users']['etebase']}
environment:
SERVER: http
AUTO_UPDATE: 'true'
ports:
- 127.0.0.1:${env['ports']['etebase']}:3735
volumes:
- ${env['volumes']['etebase']['datadir']}:/data
- ./etebase-server.ini.rendered:/data/etebase-server.ini:ro

View file

@ -0,0 +1,21 @@
[global]
secret_file = /data/secret.txt
debug = false
static_root = /srv/etebase/static
static_url = /static/
media_root = /data/media
media_url = /user-media/
language_code = en-us
time_zone = ${env['timezone']}
[allowed_hosts]
allowed_host1 = etebase.${env['domain']}
[database]
engine = django.db.backends.postgresql
name = etebase
user = ${secrets['postgres']['etebase']['user']}
password = ${secrets["postgres"]["etebase"]["pass"]}
host = postgres.${env['domain']}
port = 5432

View file

@ -21,6 +21,8 @@ socket: "/run/podman/podman.sock"
backup: backup:
etebase:
- /mnt/etebasedata/media
vaultwarden: vaultwarden:
- /mnt/vwdata/attachments - /mnt/vwdata/attachments
@ -46,6 +48,9 @@ pasta:
coturn: coturn:
ipv4: 10.86.3.1 ipv4: 10.86.3.1
ipv6: fc86::3 ipv6: fc86::3
etebase:
ipv4: 10.86.5.1
ipv6: fc86::5
syncthing: syncthing:
ipv4: 10.86.20.1 ipv4: 10.86.20.1
ipv6: fc86::20 ipv6: fc86::20

View file

@ -30,6 +30,9 @@ mailserver:
postgres: postgres:
# https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters # https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters
etebase:
user:
pass: # No '%' character allowed
keycloak: keycloak:
user: user:
pass: pass: