Migrate Etebase to python
This commit is contained in:
parent
d284cc2005
commit
413ddb9622
4 changed files with 45 additions and 0 deletions
16
projects/etebase/compose.yaml.mako
Normal file
16
projects/etebase/compose.yaml.mako
Normal 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
|
||||
|
21
projects/etebase/etebase-server.ini.mako
Normal file
21
projects/etebase/etebase-server.ini.mako
Normal 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
|
|
@ -21,6 +21,8 @@ socket: "/run/podman/podman.sock"
|
|||
|
||||
|
||||
backup:
|
||||
etebase:
|
||||
- /mnt/etebasedata/media
|
||||
vaultwarden:
|
||||
- /mnt/vwdata/attachments
|
||||
|
||||
|
@ -46,6 +48,9 @@ pasta:
|
|||
coturn:
|
||||
ipv4: 10.86.3.1
|
||||
ipv6: fc86::3
|
||||
etebase:
|
||||
ipv4: 10.86.5.1
|
||||
ipv6: fc86::5
|
||||
syncthing:
|
||||
ipv4: 10.86.20.1
|
||||
ipv6: fc86::20
|
||||
|
|
|
@ -30,6 +30,9 @@ mailserver:
|
|||
|
||||
postgres:
|
||||
# https://en.wikipedia.org/wiki/Percent-encoding#Percent-encoding_reserved_characters
|
||||
etebase:
|
||||
user:
|
||||
pass: # No '%' character allowed
|
||||
keycloak:
|
||||
user:
|
||||
pass:
|
||||
|
|
Loading…
Reference in a new issue