Update compose.yml

This commit is contained in:
David Rotermund 2024-06-29 13:50:50 +02:00 committed by GitHub
parent c0398b9c28
commit defb0033d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,30 +1,4 @@
services: services:
mariadb:
image: "mariadb"
container_name: "mariadb"
hostname: "mariadb"
restart: always
volumes:
- "mariadb_vol:/var/lib/mysql"
- "mariadb_socket:/run/mysqld"
- "/etc/localtime:/etc/localtime:ro"
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_DATABASE: "vaultwarden"
MARIADB_USER: "vaultwardenuser"
MYSQL_UNIX_PORT: "/run/mysqld/mysqld.sock"
MYSQL_ROOT_HOST: "%"
healthcheck:
test: ["CMD", "/bin/sh", "-c", "mariadb-admin ping -h localhost -u root -p$$MARIADB_ROOT_PASSWORD"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
ports:
- 3306:3306
network_mode: bridge
vaultwarden: vaultwarden:
image: vaultwarden/server:latest image: vaultwarden/server:latest
container_name: vaultwarden container_name: vaultwarden
@ -35,14 +9,26 @@ services:
ADMIN_TOKEN: ${VAULTWARDEN_ADMIN_TOKEN} ADMIN_TOKEN: ${VAULTWARDEN_ADMIN_TOKEN}
SIGNUPS_DOMAINS_WHITELIST: uni-bremen.de SIGNUPS_DOMAINS_WHITELIST: uni-bremen.de
SIGNUPS_ALLOWED: false SIGNUPS_ALLOWED: false
SMTP_HOST: "mailhost.neurotec.uni-bremen.de"
SMTP_SECURITY: "force_tls"
SMTP_PORT: 465
SMTP_FROM: "vaultwarden@neuro.uni-bremen.de"
SMTP_FROM_NAME: "Vaultwarden @ University of Bremen"
SMTP_USERNAME: ${EMAIL_USERNAME}
SMTP_PASSWORD: ${EMAIL_PASSWORD}
SMTP_AUTH_MECHANISM: "Plain"
SMTP_TIMEOUT: 15
SMTP_ACCEPT_INVALID_CERTS: true
SMTP_ACCEPT_INVALID_HOSTNAMES: false
SMTP_DEBUG: false
SIGNUPS_VERIFY: true
INVITATIONS_ALLOWED: false
EMAIL_CHANGE_ALLOWED: false
volumes: volumes:
- "vaultwarden_vol:/data" - "vaultwarden_vol:/data"
- "mariadb_socket:/run/mysqld" - "/mariadb_socket:/run/mysqld"
ports: ports:
- 11001:80 - 11001:80
depends_on:
mariadb:
condition: service_healthy
network_mode: bridge network_mode: bridge
nginx: nginx:
@ -59,13 +45,7 @@ services:
environment: environment:
NGINX_WORKER_PROCESSES: "4" NGINX_WORKER_PROCESSES: "4"
NGINX_WORKER_CONNECTIONS: "768" NGINX_WORKER_CONNECTIONS: "768"
depends_on:
mariadb:
condition: service_healthy
network_mode: bridge network_mode: bridge
volumes: volumes:
vaultwarden_vol: vaultwarden_vol:
mariadb_vol:
mariadb_socket: