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