Files
infra/cloud-pc/nextcloud/docker-compose.yml
T
Dmitry dc3ff78d6d
Deploy cloud-pc / deploy (push) Failing after 15s
Deploy mini-pc / deploy (push) Failing after 4s
Deploy ru-vps / deploy (push) Failing after 5s
Refactor Docker Compose configurations and add deployment workflows for cloud-pc and mini-pc services
2026-05-27 15:41:15 +03:00

73 lines
1.9 KiB
YAML

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
hostname: redis
restart: unless-stopped
environment:
TZ: Europe/Moscow
nextcloud:
image: nextcloud:${NC_VER}
container_name: nextcloud
hostname: nextcloud
restart: unless-stopped
ports:
- 8081:80
dns:
- 8.8.8.8
extra_hosts:
- ${NC_DOMAIN}:host-gateway
depends_on:
- postgres
- redis
volumes:
- /opt/configs/nextcloud/app:/var/www/html
- /opt/data/nextcloud:/var/www/html/data
- /mnt/yandex:/mnt/yandex:shared
environment:
TZ: Europe/Moscow
VIRTUAL_HOST: ${NC_DOMAIN}
NEXTCLOUD_TRUSTED_DOMAINS: ${NC_DOMAIN} 127.0.0.1
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
container_name: cron
restart: unless-stopped
volumes:
- /opt/configs/nextcloud/app:/var/www/html
- /opt/data/nextcloud:/var/www/html/data
entrypoint: /cron.sh
depends_on:
- nextcloud
environment:
TZ: Europe/Moscow
POSTGRES_HOST: postgres
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
REDIS_HOST: redis
networks: {}