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