Closed RABEB2 closed 4 years ago
MYSQL_ROOT_PASSWORD
env is mandatory.
From logs you can see:
[Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.28-1debian9 started.
[Note] [Entrypoint]: Switching to dedicated user 'mysql'
[Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.28-1debian9 started.
[ERROR] [Entrypoint]: Database is uninitialized and password option is not specified. You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
thank u for ur reply while starting containers i got this error knowage_1 | ERROR 1045 (28000): Access denied for user 'knowageuser'@'172.19.0.3' (using password: YES)
can u help me please ?
DB_USER
need to have the same value of MYSQL_USER
, DB_PASS
the same as MYSQL_PASSWORD
, DB_DB
the same as MYSQL_DATABASE
.
Watch out for DB_HOST
: if you use Docker Compose to run the db, this needs to have a value equals to the name of the MySql container; in your case, it's probably knowagedb
.
See our example docker-compose.yml and the fundamental .env file, used to define the env vars needed by both containers.
I'm closing the issue due to inactivity.
does anyone succeed to install knowage server 7.0 using docker compose please ?
here is my docker-compose file
`version: "3.1" services: knowage: image: knowagelabs/knowage-server-docker:7.0 depends_on:
PUBLIC_ADDRESS=localhost
knowagedb: image: mysql:5.7 environment:
volumes: db:
networks: main:`
can anyone help me please