Добавлена папка docker-data
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,5 +1,4 @@
|
|||||||
data/*
|
docker-data/*
|
||||||
.env
|
.env
|
||||||
.gitea.env
|
.gitea.env
|
||||||
backups/
|
backups/
|
||||||
postgres-data/
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
|
|||||||
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