compose: usa volumi Docker nominati per /data e /etc/gitea
I bind mount ./data e ./config stavano dentro la cartella code/ che Dokploy ri-clona ad ogni redeploy, cancellando i repository. Passaggio a named volumes (gitea-data, gitea-config) che sopravvivono ai redeploy. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -58,8 +58,8 @@ services:
|
|||||||
GITEA__service__DISABLE_REGISTRATION: "${GITEA_DISABLE_REGISTRATION:-true}"
|
GITEA__service__DISABLE_REGISTRATION: "${GITEA_DISABLE_REGISTRATION:-true}"
|
||||||
GITEA__service__REQUIRE_SIGNIN_VIEW: "${GITEA_REQUIRE_SIGNIN_VIEW:-false}"
|
GITEA__service__REQUIRE_SIGNIN_VIEW: "${GITEA_REQUIRE_SIGNIN_VIEW:-false}"
|
||||||
volumes:
|
volumes:
|
||||||
- ${GITEA_DATA_DIR:-./data}:/data
|
- gitea-data:/data
|
||||||
- ${GITEA_CONFIG_DIR:-./config}:/etc/gitea
|
- gitea-config:/etc/gitea
|
||||||
ports:
|
ports:
|
||||||
- "${GITEA_SSH_PORT:-2222}:22" # git over SSH
|
- "${GITEA_SSH_PORT:-2222}:22" # git over SSH
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -116,3 +116,5 @@ networks:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
gitea-db:
|
gitea-db:
|
||||||
|
gitea-data:
|
||||||
|
gitea-config:
|
||||||
|
|||||||
Reference in New Issue
Block a user