has anyone managed to successfully run a selfhosted gotrue instance?
i have cloned the gotrue repo, and added the following
docker-compose.yml and env files, ran the migrations successfully (i think), but don’t get a response when trying
# docker-compose.yml version: "3.8" services: app: build: . restart: unless-stopped depends_on: - db env_file: - gotrue.env ports: - 8081:8081 db: image: mysql:5.7 restart: unless-stopped env_file: - db.env volumes: - db:/var/lib/mysql volumes: db:
# db.env MYSQL_ROOT_PASSWORD=gotrue MYSQL_DATABASE=gotrue MYSQL_USER=gotrue MYSQL_PASSWORD=gotrue
# gotrue.env GOTRUE_DB_DRIVER=mysql DATABASE_URL="gotrue:gotrue@tcp(db:3306)/gotrue?parseTime=true&multiStatements=true" GOTRUE_API_HOST=localhost PORT=8081 GOTRUE_SITE_URL=http://localhost:3000 GOTRUE_JWT_SECRET=s3cr3t GOTRUE_JWT_EXP=3600 GOTRUE_OPERATOR_TOKEN=s3cr3t GOTRUE_LOG_LEVEL=debug
i have run
docker-compose run --rm app gotrue migrate for the migrations, which seems to have worked.
docker logs gotrue_app_1 does not show anything useful, even with log level debug.
when trying to reach
http://localhost:8081/settings i get “Connection reset by peer”.