Refactor Docker Compose configurations and add deployment workflows for cloud-pc and mini-pc services
Deploy cloud-pc / deploy (push) Failing after 15s
Deploy mini-pc / deploy (push) Failing after 4s
Deploy ru-vps / deploy (push) Failing after 5s

This commit is contained in:
Dmitry
2026-05-27 15:41:15 +03:00
parent 90128b237d
commit dc3ff78d6d
39 changed files with 603 additions and 29 deletions
+7
View File
@@ -0,0 +1,7 @@
services:
ada-dev:
image: git.ada-dev.ru/ada/ada-dev.ru:latest
container_name: ada-dev-ru
restart: unless-stopped
ports:
- "7080:80"
+2 -2
View File
@@ -4,8 +4,8 @@ services:
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /srv/stacks/gitea-runner/data:/data
- /opt/data/gitea-runner:/data
environment:
GITEA_INSTANCE_URL: https://git.ada-dev.ru
GITEA_RUNNER_REGISTRATION_TOKEN: ${TOKEN}
GITEA_RUNNER_NAME: cloud-pc-runner
GITEA_RUNNER_NAME: cloud-pc-runner
+1 -4
View File
@@ -16,11 +16,8 @@ services:
restart: unless-stopped
volumes:
- type: bind
source: /srv/stacks/gitea/data
source: /opt/data/gitea
target: /data
networks:
default:
name: gitea_default
x-dockge:
urls:
- https://git.ada-dev.ru
+6
View File
@@ -0,0 +1,6 @@
services:
neural:
ports:
- 4567:4567
image: git.ada-dev.ru/ada/lr_miad_nn:latest
networks: {}
+6 -6
View File
@@ -5,7 +5,7 @@ services:
hostname: postgres
restart: unless-stopped
volumes:
- /srv/stacks/postgresql/data:/var/lib/postgresql/data
- /opt/data/postgres:/var/lib/postgresql/data
environment:
TZ: Europe/Moscow
POSTGRES_DB: ${DB_NAME}
@@ -35,8 +35,8 @@ services:
- postgres
- redis
volumes:
- /srv/stacks/nextcloud/nc_data:/var/www/html
- /mnt/pool/nextcloud:/var/www/html/data
- /opt/configs/nextcloud/app:/var/www/html
- /opt/data/nextcloud:/var/www/html/data
- /mnt/yandex:/mnt/yandex:shared
environment:
TZ: Europe/Moscow
@@ -57,8 +57,8 @@ services:
container_name: cron
restart: unless-stopped
volumes:
- /srv/stacks/nextcloud/nc_data:/var/www/html
- /mnt/pool/nextcloud:/var/www/html/data
- /opt/configs/nextcloud/app:/var/www/html
- /opt/data/nextcloud:/var/www/html/data
entrypoint: /cron.sh
depends_on:
- nextcloud
@@ -69,4 +69,4 @@ services:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
REDIS_HOST: redis
networks: {}
networks: {}
+55
View File
@@ -0,0 +1,55 @@
version = "1"
[global]
scheduler = "systemd"
# ── Общие настройки ────────────────────────────────────────────────────────────
[default]
password-file = "/etc/restic/password"
initialize = true
[default.forget]
keep-daily = 7
keep-weekly = 4
keep-monthly = 6
schedule-permission = "system"
schedule-after-backup = true
prune = true
[default.check]
schedule = "Sun 04:00"
schedule-permission = "system"
# ── Данные и конфиги сервисов ─────────────────────────────────────────────────
[services]
inherit = "default"
repository = "/mnt/backup/restic/services"
[services.backup]
source = ["/opt/data", "/opt/configs"]
tag = ["cloud-pc", "services"]
exclude-caches = true
one-file-system = true
schedule = "02:00"
schedule-permission = "system"
schedule-log = "/var/log/resticprofile/services.log"
[services.forget]
schedule = "02:30"
# ── Samba-шара ────────────────────────────────────────────────────────────────
[samba]
inherit = "default"
repository = "/mnt/backup/restic/samba"
[samba.backup]
source = ["/opt/samba"]
tag = ["cloud-pc", "samba"]
exclude-caches = true
one-file-system = true
schedule = "03:00"
schedule-permission = "system"
schedule-log = "/var/log/resticprofile/samba.log"
[samba.forget]
schedule = "03:30"
+1
View File
@@ -0,0 +1 @@
SAMBA_PASSWORD=changeme
+16
View File
@@ -0,0 +1,16 @@
services:
samba:
image: ghcr.io/servercontainers/samba:latest
container_name: samba
restart: unless-stopped
network_mode: host
volumes:
- /opt/samba/media:/shares/media
- /opt/samba/documents:/shares/documents
- /opt/samba/backups_win:/shares/backups_win
environment:
ACCOUNT_ada: ${SAMBA_PASSWORD}
UID_ada: "1000"
SAMBA_VOLUME_CONFIG_media: "[media]; path = /shares/media; valid users = ada; read only = no"
SAMBA_VOLUME_CONFIG_documents: "[documents]; path = /shares/documents; valid users = ada; read only = no"
SAMBA_VOLUME_CONFIG_backups_win: "[backups_win]; path = /shares/backups_win; valid users = ada; read only = no"
+14
View File
@@ -0,0 +1,14 @@
services:
syncthing:
image: syncthing/syncthing:latest
container_name: syncthing
hostname: cloud-pc
environment:
PUID: "1000"
PGID: "1000"
STGUIADDRESS: 0.0.0.0:8384
volumes:
- /opt/configs/syncthing:/var/syncthing/config
- /opt/data/syncthing:/var/syncthing/data
network_mode: host
restart: unless-stopped
+9
View File
@@ -0,0 +1,9 @@
services:
watchtower:
image: containrrr/watchtower:latest
environment:
- DOCKER_API_VERSION=1.54
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 300 --cleanup
restart: unless-stopped
+15
View File
@@ -0,0 +1,15 @@
services:
zerotier:
container_name: zerotier
restart: unless-stopped
network_mode: host
cap_add:
- NET_ADMIN
- SYS_ADMIN
devices:
- /dev/net/tun
volumes:
- /opt/data/zerotier:/var/lib/zerotier-one
image: zerotier/zerotier:latest
command: ["743993800fa5a34c"]
networks: {}