Open TheBlusky opened 4 months ago
Mine's on mysql:8, but I'm using standardnotes/server:5c02435ee478b893747d3f9e41062aae12d7ff10 to go with it. Don't forget to remove local data directories created by the bootstrapping script between version tests as well; might be impacting things.
I have essentially the same docker compose setup, with mysql 8, double check your environment variables.
DB_HOST=db
DB_PORT=3306
DB_USERNAME=std_notes_user
DB_PASSWORD=...
DB_DATABASE=standard_notes_db
DB_TYPE=mysql
MYSQL_DATABASE=standard_notes_db
MYSQL_USER=std_notes_user
MYSQL_ROOT_PASSWORD=...
MYSQL_PASSWORD=...
REDIS_PORT=6379
REDIS_HOST=cache
CACHE_TYPE=redis
AUTH_JWT_SECRET=...
AUTH_SERVER_ENCRYPTION_SERVER_KEY=...
VALET_TOKEN_SECRET=...
PUBLIC_FILES_SERVER_URL="https://custom.app.url.here:3104"
COOKIE_DOMAIN=custom.app.url.here
I gave both the server
and the db
containers all these variables because I could not be bohered to have db username and password in two different places.
I used last docker-compose file, but tweaked it for my usage:
When starting it, each containers starts properly, but service isn't working.
"syncing-server" is not launching, there are some errors with migrations:
==>
error: Error: ALGORITHM=INSTANT is not supported for this operation. Try ALGORITHM=COPY/INPLACE.
After googling this error, it looked like an issue with MySQL version.
I tried reseting the DB and using
8
,8.0
,8.3
, all gave the same error.