Add Docker Compose files for Gitea and Nextcloud services

This commit is contained in:
Dmitry
2026-05-17 14:01:15 +03:00
commit 195368b57c
2 changed files with 98 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
services:
gitea:
environment:
USER_GID: "1000"
USER_UID: "1000"
hostname: gitea
image: gitea/gitea:latest
network_mode: bridge
ports:
- target: 3000
published: "3002"
protocol: tcp
- target: 22
published: "2222"
protocol: tcp
restart: unless-stopped
volumes:
- type: bind
source: /srv/stacks/gitea/data
target: /data
networks:
default:
name: gitea_default
x-dockge:
urls:
- https://git.ada-dev.ru
+72
View File
@@ -0,0 +1,72 @@
services:
postgres:
image: postgres:${PG_VER}-alpine
container_name: postgres
hostname: postgres
restart: unless-stopped
volumes:
- /srv/stacks/postgresql/data:/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:
- /srv/stacks/nextcloud/nc_data:/var/www/html
- /mnt/pool/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:
- /srv/stacks/nextcloud/nc_data:/var/www/html
- /mnt/pool/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: {}