Add Gitea entrypoint to generate app.ini from template on startup
Deploy with Docker Compose / deploy (push) Successful in 6s

Since app.ini is gitignored, the container needs to create it at
runtime. The entrypoint copies the template on first start, then
Gitea's env var overrides handle secrets.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
2026-04-07 14:40:38 +01:00
co-authored by Claude Opus 4.6
parent cdcef5ba96
commit 7afd1be81b
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -152,6 +152,7 @@ services:
gitea:
image: docker.gitea.com/gitea:1.25.4-rootless
container_name: "${GITEA_HOST}"
entrypoint: ["/usr/bin/dumb-init", "--", "/etc/gitea/entrypoint.sh"]
networks:
- app-network
environment:
@@ -169,6 +170,7 @@ services:
volumes:
- ./gitea/data:/var/lib/gitea
- ./gitea/config:/etc/gitea
- ./gitea/entrypoint.sh:/etc/gitea/entrypoint.sh:ro
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports: