mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Simplify gitea setup
This commit is contained in:
1 parent
fca5b718a3
commit
315a29c2fd
2 files changed
+7
-25
No files matched your search
@@ -493,7 +493,8 @@ jobs:
|
||||
if: matrix.service.name == 'VCSGitea'
|
||||
timeout-minutes: 5
|
||||
run: |
|
||||
docker compose up -d --wait gitea gitea-bootstrap
|
||||
docker compose up -d --wait gitea
|
||||
docker compose exec -T gitea /setup.sh
|
||||
CREDS=$(docker compose exec -T gitea cat /data/gitea/oauth.json)
|
||||
CLIENT_SECRET=$(echo "$CREDS" | jq -r .client_secret)
|
||||
echo "::add-mask::$CLIENT_SECRET"
|
||||
|
||||
@@ -20,11 +20,7 @@ services:
|
||||
- ./src:/usr/src/code/src
|
||||
- ./dev:/usr/src/code/dev
|
||||
depends_on:
|
||||
coredns:
|
||||
condition: service_started
|
||||
gitea-bootstrap:
|
||||
condition: service_completed_successfully
|
||||
required: false
|
||||
- coredns
|
||||
ports:
|
||||
- 9501:80
|
||||
dns:
|
||||
@@ -351,9 +347,13 @@ services:
|
||||
- 9515:3000
|
||||
volumes:
|
||||
- appwrite-gitea:/data
|
||||
- ./dev/gitea/setup.sh:/setup.sh:ro
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- GITEA_ADMIN_USERNAME=${GITEA_ADMIN_USERNAME:-appwrite}
|
||||
- GITEA_ADMIN_PASSWORD=${GITEA_ADMIN_PASSWORD:-password}
|
||||
- GITEA_ADMIN_EMAIL=${GITEA_ADMIN_EMAIL:-gitea@appwrite.io}
|
||||
- GITEA__database__DB_TYPE=sqlite3
|
||||
- GITEA__security__INSTALL_LOCK=true
|
||||
- GITEA__service__DISABLE_REGISTRATION=false
|
||||
@@ -373,25 +373,6 @@ services:
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
gitea-bootstrap:
|
||||
profiles:
|
||||
- gitea
|
||||
image: gitea/gitea:1.21.5
|
||||
container_name: appwrite-gitea-bootstrap
|
||||
networks:
|
||||
- appwrite
|
||||
volumes:
|
||||
- appwrite-gitea:/data
|
||||
- ./dev/gitea/setup.sh:/setup.sh:ro
|
||||
depends_on:
|
||||
gitea:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- GITEA_ADMIN_USERNAME=${GITEA_ADMIN_USERNAME:-appwrite}
|
||||
- GITEA_ADMIN_PASSWORD=${GITEA_ADMIN_PASSWORD:-password}
|
||||
- GITEA_ADMIN_EMAIL=${GITEA_ADMIN_EMAIL:-gitea@appwrite.io}
|
||||
entrypoint: /bin/sh
|
||||
command: /setup.sh
|
||||
appwrite-mongo-express:
|
||||
profiles:
|
||||
- mongodb
|
||||
|
||||
Reference in new issue
Block a user