Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 11528dc253 | |||
| fc9a82e0fc | |||
| f6c2836eb1 | |||
| 1f215f50dd | |||
| 7093fd72c0 | |||
| 8e86853f3d | |||
| 3fa6c744d9 | |||
| 0c1b94eaeb |
@@ -1,71 +1,53 @@
|
||||
# Vaultwarden Configuration - (Bitwarden-compatible) Password Manager
|
||||
services:
|
||||
vaultwarden_db:
|
||||
# PostgreSQL Database Configuration
|
||||
container_name: vaultwarden_db
|
||||
image: docker.io/library/postgres:17.5
|
||||
restart: unless-stopped # Auto-recover from crashes
|
||||
|
||||
# Database credentials
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER} # Database username
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} # Database password
|
||||
- POSTGRES_DB=${POSTGRES_DB} # Database name
|
||||
|
||||
# Persistent storage configuration
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
volumes:
|
||||
- ${APPDATA_PATH}/vaultwarden/db:/var/lib/postgresql/data # Database files
|
||||
|
||||
# Network configuration
|
||||
- ${APPDATA_PATH}/vaultwarden/db:/var/lib/postgresql/data
|
||||
ports:
|
||||
- ${DB_PORT}:5432 # PostgreSQL default port
|
||||
- ${DB_PORT}:5432
|
||||
networks:
|
||||
- backend # Connects to backend network
|
||||
|
||||
# Health monitoring
|
||||
- backend
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"] # Connection check
|
||||
interval: 30s # Check every 30 seconds
|
||||
timeout: 5s # Maximum check duration
|
||||
retries: 5 # Allow 5 failures before marking unhealthy
|
||||
start_period: 20s # Initial grace period
|
||||
test: ["CMD-SHELL", "pg_isready -d ${POSTGRES_DB} -U ${POSTGRES_USER}"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
|
||||
vaultwarden_server:
|
||||
container_name: vaultwarden_server
|
||||
# Container configuration
|
||||
image: ghcr.io/dani-garcia/vaultwarden:1.34.1 # Official Vaultwarden image
|
||||
restart: unless-stopped # Auto-restart on failure
|
||||
image: ghcr.io/dani-garcia/vaultwarden:1.34.1
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
vaultwarden_db:
|
||||
condition: service_healthy # Wait for healthy database
|
||||
|
||||
# Application settings
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- PUID=${PUID} # User ID for file permissions
|
||||
- PGID=${PGID} # Group ID for file permissions
|
||||
- TZ=${TZ} # Timezone configuration
|
||||
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@vaultwarden_db:5432/${POSTGRES_DB} # DB connection
|
||||
- WEBSOCKET_ENABLED=${WEBSOCKET_ENABLED} # Real-time updates
|
||||
- LOG_FILE=/data/vaultwarden.log # Log file location
|
||||
- PUID=${PUID}
|
||||
- PGID=${PGID}
|
||||
- TZ=${TZ}
|
||||
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@vaultwarden_db:5432/${POSTGRES_DB}
|
||||
- WEBSOCKET_ENABLED=${WEBSOCKET_ENABLED}
|
||||
- LOG_FILE=/data/vaultwarden.log
|
||||
# Uncomment and set these only on first run
|
||||
# - DOMAIN=${DOMAIN} # Domain Name
|
||||
# - SIGNUPS_ALLOWED=${SIGNUPS_ALLOWED} # User registration
|
||||
# - ADMIN_TOKEN=${ADMIN_TOKEN} # Admin interface access token
|
||||
|
||||
# Persistent storage configuration
|
||||
# - DOMAIN=${DOMAIN}
|
||||
# - SIGNUPS_ALLOWED=${SIGNUPS_ALLOWED}
|
||||
# - ADMIN_TOKEN=${ADMIN_TOKEN}
|
||||
volumes:
|
||||
- ${APPDATA_PATH}/vaultwarden/data:/data # Vault data storage
|
||||
|
||||
# Network configuration
|
||||
- ${APPDATA_PATH}/vaultwarden/data:/data
|
||||
ports:
|
||||
- ${SERVER_PORT}:80 # Web interface port
|
||||
- ${SERVER_PORT}:80
|
||||
networks:
|
||||
- frontend # Connects to frontend network
|
||||
- backend # Connects to backend network
|
||||
- frontend
|
||||
- backend
|
||||
|
||||
# External network definitions
|
||||
networks:
|
||||
frontend:
|
||||
external: true # Uses existing frontend network
|
||||
external: true
|
||||
backend:
|
||||
external: true # Uses existing backend network
|
||||
external: true
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
gitea_runner:
|
||||
container_name: gitea_runner
|
||||
image: docker.io/gitea/act_runner:0.6.0@sha256:b2df7d04d17334ff8e741c32b0df099d5df046d96599cb330d4ed7c097cb087f
|
||||
image: docker.io/gitea/act_runner:0.6.1@sha256:b5c35d6bdbb9bb25e531230bfc7cc663cb751406cbec90a2a891b85fea54de86
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
CONFIG_FILE: /config.yml
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
healthchecks:
|
||||
container_name: healthchecks
|
||||
image: ghcr.io/linuxserver/healthchecks:4.1.20260323@sha256:9284fb75cc62aafebb01eceef41f1630cc5c97c25ea2e310083e9799f36836f3
|
||||
image: ghcr.io/linuxserver/healthchecks:4.2.20260428@sha256:2973440afcdcf5884b334782a70b7a7c292595810ad3a162f0289d2e878f2c80
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- PUID=${PUID}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
home-assistant:
|
||||
container_name: home-assistant
|
||||
image: ghcr.io/home-assistant/home-assistant:2026.4.0@sha256:7fbf6a5e006e889d7799476ad7646bd18e9dc73e8a4ccd9326b41798de6bb3bf
|
||||
image: ghcr.io/home-assistant/home-assistant:2026.4.4@sha256:c1e5f0147f4cb51ccb05bb30b62a1269cc1bd48a6274792d3b38a77ab274dfd2
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ${APPDATA_PATH}/home-assistant/config:/config
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
kiwix:
|
||||
container_name: kiwix
|
||||
image: ghcr.io/kiwix/kiwix-serve:3.8.2@sha256:acdab28186a66b51bfd4202210c6732931ea95cf41c711148a0c9770b9fcc9e1
|
||||
image: ghcr.io/kiwix/kiwix-serve:3.8.2@sha256:0b6541355b250c6b45d2d7725e88f22f1d6a0f45ad9480d9c0bd4bc58436a12f
|
||||
restart: unless-stopped
|
||||
command:
|
||||
- '*.zim'
|
||||
|
||||
Reference in New Issue
Block a user