When I start up the gitea docker container for the first time, it works perfectly well and guides me through the installation page. I enter all the values, click “Install”, and everything works like a charm.
But when I try to remove/stop the gitea container and then start it again, gitea refuses to answer.
When looking into the logs, I see that gitea is doing the same query multiple times per second, thus preventing gitea from starting up.
Is this problem known and if yes, what can I do against it?
Deleting the data volume and rerunning the installation solves the problem. But this can’t be the solution, I don’t want to rerun the installation everytime I restart the container.
I am using MySQL and my docker-compose.yml looks like this:
If you need more information, please tell me what you are looking for and I will provide!
version: "2" services: gitea: image: gitea/gitea:latest container_name: gitea restart: always environment: - USER_UID=1000 - USER_GID=100 - DB_TYPE=mysql - DB_HOST=IP:3306 - DB_NAME=gitea - DB_USER=gitea - DB_PASSWD=pw networks: - central-db volumes: - ./data:/data ports: - "2224:22" networks: central-db: external: true