KnowageLabs / Knowage-Server-Docker

Docker Image packaging for Knowage Server https://www.knowage-suite.com
GNU Affero General Public License v3.0
66 stars 77 forks source link

Install Konwage 7.0 using docker-compose #26

Closed RABEB2 closed 4 years ago

RABEB2 commented 4 years ago

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:

volumes: db:

networks: main:`

can anyone help me please

kerny3d commented 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

RABEB2 commented 4 years ago

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)

image (1)

can u help me please ?

kerny3d commented 4 years ago

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.

kerny3d commented 4 years ago

I'm closing the issue due to inactivity.