From 92809cdaef73f9999f1034b82c6b9e7a59dc25ec Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Wed, 17 Jul 2024 10:36:56 +0200 Subject: [PATCH] Migrate docker compose to directly use env file --- docker-compose.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index bde6c54..6f8a919 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,17 +3,8 @@ services: image: vaultwarden/server:1.31.0 container_name: vaultwarden restart: unless-stopped - environment: - - WEBSOCKET_ENABLED=true # Enable WebSocket notifications. - - SIGNUPS_ALLOWED=false - - DOMAIN=${DOMAIN} - - SMTP_HOST=${SMTP_HOST} - - SMTP_FROM=${SMTP_FROM} - - SMTP_PORT=587 - - SMTP_SSL=true - - SMTP_USERNAME=${SMTP_USERNAME} - - SMTP_PASSWORD=${SMTP_PASSWORD} - - ADMIN_TOKEN=${ADMIN_TOKEN} + env_file: + - .env volumes: - ./bw-data:/data networks: