Extract Shared NixOS Settings
NixOS switch mini-pc / switch (push) Successful in 14s
Deploy cloud-pc / deploy (push) Failing after 29s
NixOS switch cloud-pc / switch (push) Successful in 11s

This commit is contained in:
Dmitry
2026-05-30 17:25:18 +03:00
parent 2e0b494000
commit 54b4a23446
6 changed files with 28 additions and 66 deletions
+3 -23
View File
@@ -1,18 +1,4 @@
services:
postgres:
image: postgres:${PG_VER}-alpine
container_name: postgres
hostname: postgres
restart: unless-stopped
volumes:
- /opt/data/postgres:/var/lib/postgresql/data
environment:
TZ: Europe/Moscow
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
ports:
- 5432:5432
redis:
image: redis:alpine
container_name: redis
@@ -20,6 +6,7 @@ services:
restart: unless-stopped
environment:
TZ: Europe/Moscow
nextcloud:
image: nextcloud:${NC_VER}
container_name: nextcloud
@@ -32,7 +19,6 @@ services:
extra_hosts:
- ${NC_DOMAIN}:host-gateway
depends_on:
- postgres
- redis
volumes:
- /opt/configs/nextcloud/app:/var/www/html
@@ -45,12 +31,9 @@ services:
NEXTCLOUD_OVERWRITEPROTOCOL: https
NEXTCLOUD_ADMIN_USER: ${NC_ADMIN_USER}
NEXTCLOUD_ADMIN_PASSWORD: ${NC_ADMIN_PASSWORD}
POSTGRES_HOST: postgres
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
REDIS_HOST: redis
TRUSTED_PROXIES: ${TRUSTED_PROXIES}
cron:
image: nextcloud:${NC_VER}
hostname: cron
@@ -64,9 +47,6 @@ services:
- nextcloud
environment:
TZ: Europe/Moscow
POSTGRES_HOST: postgres
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
REDIS_HOST: redis
networks: {}