This commit is contained in:
2026-09-06 01:43:27 +03:00
parent 73fb5a3f5f
commit be43c85569
9 changed files with 351 additions and 8 deletions
+58 -2
View File
@@ -17,7 +17,25 @@ services:
test: ["CMD", "/usr/bin/check-health"]
interval: 60s
timeout: 3s
db:
image: 'postgres:16-alpine'
restart: unless-stopped
shm_size: 128mb
volumes:
- ./data/postgres:/var/lib/postgresql/data
secrets:
- postgres_admin_password
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_admin_password
POSTGRES_INITDB_ARGS: '--encoding=UTF8 --locale=C'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 30s
timeout: 5s
retries: 5
pwd:
image: 'vaultwarden/server:1.37.1'
restart: unless-stopped
@@ -72,6 +90,39 @@ services:
timeout: 10s
retries: 3
msg:
image: 'matrixdotorg/synapse:v1.160.0'
restart: unless-stopped
depends_on:
db:
condition: service_healthy
volumes:
- ./data/synapse:/data
secrets:
- synapse_homeserver_config
environment:
SYNAPSE_CONFIG_PATH: /run/secrets/synapse_homeserver_config
healthcheck:
test: ['CMD', 'curl', '-fSs', 'http://localhost:8008/health']
interval: 30s
timeout: 5s
retries: 5
msg-web:
image: 'vectorim/element-web:v1.12.27'
restart: unless-stopped
depends_on:
msg:
condition: service_healthy
secrets:
- source: element_config
target: /app/config.json
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://localhost']
interval: 30s
timeout: 5s
retries: 5
git:
image: 'docker.gitea.com/gitea:1.26.2'
restart: unless-stopped
@@ -130,12 +181,17 @@ networks:
name: vbevdev
secrets:
postgres_admin_password:
file: secrets/postgres_admin_password.txt
vaultwarden_admin_token:
file: secrets/vaultwarden_admin_token.txt
beszel_agent_key:
file: secrets/beszel_agent_key.txt
beszel_agent_token:
file: secrets/beszel_agent_token.txt
synapse_homeserver_config:
file: secrets/synapse_homeserver_config.yaml
element_config:
file: secrets/element_config.json
gitea_runner_registration_token:
file: secrets/gitea_runner_registration_token.txt