vaultwarden : ajout selinux emails, variables
This commit is contained in:
parent
7da5d789d6
commit
b456c67cf0
|
@ -23,11 +23,20 @@ fi
|
|||
cat <<EOT > .env
|
||||
# vaultwarden
|
||||
DATABASE_URL=postgresql://vaultwarden:${GARBAYE_VAULTWARDEN_DATABASE_PASSWORD}@database:${database_port}/vaultwarden
|
||||
#ADMIN_TOKEN=${GARBAYE_VAULTWARDEN_ADMIN_PASSWORD}
|
||||
ADMIN_TOKEN=${GARBAYE_VAULTWARDEN_ADMIN_PASSWORD}
|
||||
DOMAIN=${GARBAYE_VAULTWARDEN_DOMAIN}
|
||||
# PostgreSQL
|
||||
POSTGRES_DB=vaultwarden
|
||||
POSTGRES_PASSWORD=${GARBAYE_VAULTWARDEN_DATABASE_PASSWORD}
|
||||
POSTGRES_USER=vaultwarden
|
||||
# Signups
|
||||
SIGNUPS_VERIFY=true
|
||||
# SMTP
|
||||
SMTP_HOST=${GARBAYE_SEAFILE_SMTP_SERVER}
|
||||
SMTP_FROM=vaultwarden@garbaye.fr
|
||||
SMTP_FROM_NAME=Vaultwarden
|
||||
SMTP_SECURITY=off
|
||||
SMTP_PORT=25
|
||||
EOT
|
||||
|
||||
export vaultwarden_image
|
||||
|
|
|
@ -16,7 +16,7 @@ services:
|
|||
# - POSTGRES_PASSWORD=
|
||||
# - POSTGRES_DB=vaultwarden
|
||||
volumes:
|
||||
- database:${database_path}
|
||||
- database:${database_path}:Z
|
||||
networks:
|
||||
backend:
|
||||
#restart: always
|
||||
|
@ -25,7 +25,7 @@ services:
|
|||
container_name: ${container_name}
|
||||
image: ${vaultwarden_image}:${vaultwarden_version}
|
||||
volumes:
|
||||
- data:/data
|
||||
- data:/data:Z
|
||||
ports:
|
||||
- "127.0.0.1:8090:80"
|
||||
- "127.0.0.1:9090:3012"
|
||||
|
|
|
@ -12,8 +12,10 @@ database_port=5432
|
|||
#database_path="/var/lib/mysql"
|
||||
#database_dialect=mysql
|
||||
#database_port=3306
|
||||
## default vars : override with ENV var
|
||||
GARBAYE_VAULTWARDEN_DOMAIN="${GARBAYE_VAULTWARDEN_ENV_DOMAIN:-http://localhost}"
|
||||
## mandatory ENV vars
|
||||
envvars='GARBAYE_VAULTWARDEN_DATABASE_PASSWORD'
|
||||
envvars='GARBAYE_VAULTWARDEN_ADMIN_PASSWORD GARBAYE_VAULTWARDEN_DATABASE_PASSWORD'
|
||||
## internal vars : do not touch
|
||||
project_name=${PWD##*/}
|
||||
pod_name="pod_${project_name}"
|
||||
|
@ -23,3 +25,4 @@ datavolume="${project_name}_data"
|
|||
dbvolume="${project_name}_database"
|
||||
container_name="${project_name}_app"
|
||||
db_container_name="${project_name}_database"
|
||||
get_default_iface_ipv4 GARBAYE_SEAFILE_SMTP_SERVER
|
||||
|
|
Loading…
Reference in a new issue