Git Product home page Git Product logo

Comments (6)

jcormier avatar jcormier commented on July 26, 2024

The following command is used to check if mysql is reachable, can you try that as well.
mysqladmin -h ${DB_HOST} -P ${DB_PORT} -u ${DB_USER} ${DB_PASS:+-p$DB_PASS} status

from docker-redmine.

jcormier avatar jcormier commented on July 26, 2024

Note it might help to read through this issue as well
#399

As far as I can tell all of this works okay when the host is ubuntu so not sure what Synology is doing things differently.

from docker-redmine.

FireheadJuran avatar FireheadJuran commented on July 26, 2024

Hi jcormier,

I tryed you command in the SSH shell and get the following:

root@CCNAS01:~# docker exec -it CC_Redmine_Prod bash
root@cc_redmine_prod:/home/redmine/redmine# mysqladmin -h Synology_NAS_IP -P 3306 -u REDMINEDBUSER -pREDMINEDBPW status
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
Uptime: 100519  Threads: 14  Questions: 30904  Slow queries: 0  Opens: 14477  Open tables: 10  Queries per second avg: 0.307
root@cc_redmine_prod:/home/redmine/redmine#

from docker-redmine.

FireheadJuran avatar FireheadJuran commented on July 26, 2024

Solved:

WRONG

      DB_USERNAME: REDMINEDBUSER
      DB_PASSWORD: REDMINEDBPW

CORRECT

      DB_USER: REDMINEDBUSER
      DB_PASS: REDMINEDBPW

And a big AND change the following:

    ports:
      #- 8059:3000
      - 8059:80
      - 8060:443

Now I'm in the loginpage and could change the PW for admin.

Hope this helps some one other who uses portainer on hin Synology NAS and would install Redmine with the MySQL from external.

from docker-redmine.

FireheadJuran avatar FireheadJuran commented on July 26, 2024

And for completeness, here are the yml for Redmine, deploying it via portainer.io on a Synology NAS in docker with an external MariaDB/MySQL Server:

version: '3.9'
services:
  redmine:
    image: sameersbn/redmine:latest
    container_name: Redmine_Prod
    hostname: redmine_prod
    environment:
      DB_ADAPTER: mysql2
      DB_HOST: <YOUR_SQLSRV_IP>
      DB_PORT: 3306
      DB_NAME: redmine
      DB_USER: redmine
      DB_PASS: redmine
    volumes:
      - /volume1/docker/redmine/files:/usr/src/redmine/files:rw
      - /volume1/docker/redmine/data:/home/redmine/data:rw
      - /volume1/docker/redmine/log:/var/log/redmine:rw
    ports:
      - 8059:80
      - 8060:443
    restart: always

Please keep in mind, if you are using an external SQL server, you first have to create the user and the database, otherwise it will not be working and don't forget to create the folders for the volumes ;)

Hope this save others hours of finding errors... I spend over 9h to get it functional, but it depends on my low experrience with docker.

Cheers,
Firehead

from docker-redmine.

jcormier avatar jcormier commented on July 26, 2024

Glad to hear it

from docker-redmine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.