Добавлена папка docker-data
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,5 +1,4 @@
|
||||
data/*
|
||||
docker-data/*
|
||||
.env
|
||||
.gitea.env
|
||||
backups/
|
||||
postgres-data/
|
||||
|
||||
@@ -5,7 +5,6 @@ services:
|
||||
# ============================================================
|
||||
backup:
|
||||
image: ghcr.io/gromov-io/docker-s3-backup:latest
|
||||
container_name: gitea-backup
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
postgres:
|
||||
@@ -32,14 +31,13 @@ services:
|
||||
# ============================================================
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: gitea-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=${POSTGRES_USER}
|
||||
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
||||
- POSTGRES_DB=${POSTGRES_DB}
|
||||
volumes:
|
||||
- ./postgres-data:/var/lib/postgresql/data
|
||||
- ./docker-data/postgres:/var/lib/postgresql/data
|
||||
networks:
|
||||
- gitea_network
|
||||
healthcheck:
|
||||
@@ -53,7 +51,6 @@ services:
|
||||
# ============================================================
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
container_name: gitea
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
postgres:
|
||||
@@ -185,9 +182,7 @@ services:
|
||||
# Cache Configuration
|
||||
- GITEA__cache__ENABLED=true
|
||||
volumes:
|
||||
- ./data:/data
|
||||
- ./custom-templates/base:/data/gitea/custom/templates/base:ro
|
||||
- ./custom-templates/public:/data/gitea/custom/public:ro
|
||||
- ./docker-data/gitea:/data
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
networks:
|
||||
@@ -198,4 +193,4 @@ services:
|
||||
|
||||
networks:
|
||||
gitea_network:
|
||||
name: gitea_network
|
||||
|
||||
|
||||
0
docker-data/gitea/.gitkeep
Normal file
0
docker-data/gitea/.gitkeep
Normal file
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user