Добавлена папка docker-data

This commit is contained in:
2025-10-25 03:59:07 +03:00
parent 39d561dae4
commit 132c045903
9 changed files with 4 additions and 10 deletions

3
.gitignore vendored
View File

@@ -1,5 +1,4 @@
data/* docker-data/*
.env .env
.gitea.env .gitea.env
backups/ backups/
postgres-data/

View File

@@ -5,7 +5,6 @@ services:
# ============================================================ # ============================================================
backup: backup:
image: ghcr.io/gromov-io/docker-s3-backup:latest image: ghcr.io/gromov-io/docker-s3-backup:latest
container_name: gitea-backup
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
postgres: postgres:
@@ -32,14 +31,13 @@ services:
# ============================================================ # ============================================================
postgres: postgres:
image: postgres:16-alpine image: postgres:16-alpine
container_name: gitea-postgres
restart: unless-stopped restart: unless-stopped
environment: environment:
- POSTGRES_USER=${POSTGRES_USER} - POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB} - POSTGRES_DB=${POSTGRES_DB}
volumes: volumes:
- ./postgres-data:/var/lib/postgresql/data - ./docker-data/postgres:/var/lib/postgresql/data
networks: networks:
- gitea_network - gitea_network
healthcheck: healthcheck:
@@ -53,7 +51,6 @@ services:
# ============================================================ # ============================================================
gitea: gitea:
image: gitea/gitea:latest image: gitea/gitea:latest
container_name: gitea
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
postgres: postgres:
@@ -185,9 +182,7 @@ services:
# Cache Configuration # Cache Configuration
- GITEA__cache__ENABLED=true - GITEA__cache__ENABLED=true
volumes: volumes:
- ./data:/data - ./docker-data/gitea:/data
- ./custom-templates/base:/data/gitea/custom/templates/base:ro
- ./custom-templates/public:/data/gitea/custom/public:ro
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
networks: networks:
@@ -198,4 +193,4 @@ services:
networks: networks:
gitea_network: gitea_network:
name: gitea_network

View File

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB