Docker - Disable Registration/SSH not working when passed as environment variable #4192

Closed
opened 2025-11-02 05:41:53 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @ghost on GitHub (Oct 26, 2019).

    gitea:
        container_name: gitea
        image: {private repo}
        restart: unless-stopped
        ports:
            - "801:3000"
        environment:
            USER_UID: 1000
            USER_GID: 1000
            DISABLE_REGISTRATION: "true"
            DISABLE_SSH: "true"
            RUN_MODE: "prod"
        volumes:
            - "$HOME/Docker/Gitea:/data"

This is my docker-compose.yml and apparently I can create as many account as I want even though DISABLE_REGISTRATION flag is set to true.

Originally created by @ghost on GitHub (Oct 26, 2019). ``` gitea: container_name: gitea image: {private repo} restart: unless-stopped ports: - "801:3000" environment: USER_UID: 1000 USER_GID: 1000 DISABLE_REGISTRATION: "true" DISABLE_SSH: "true" RUN_MODE: "prod" volumes: - "$HOME/Docker/Gitea:/data" ``` This is my docker-compose.yml and apparently I can create as many account as I want even though DISABLE_REGISTRATION flag is set to true.
GiteaMirror added the type/question label 2025-11-02 05:41:53 -06:00
Author
Owner

@techknowlogick commented on GitHub (Oct 26, 2019):

Please refer to your app.ini which has the most recent setting. Most env vars in docker are only for initial configuration

@techknowlogick commented on GitHub (Oct 26, 2019): Please refer to your app.ini which has the most recent setting. Most env vars in docker are only for initial configuration
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4192