Trouble migrating from executable to docker image.
-
I'm having trouble migrating from the stand alone executable to the docker image.
Is it possible to do this via backup and restore?
-
J jkandasa moved this topic from Announcements
-
@rayven yes, it is possible via backup restore, can share your docker command to run the MyController?
-
sudo docker run --detach --name mycontroller --publish 8080:8080 --publish 8443:8443 --publish 9443:9443 --volume $PWD/mc_home:/mc_home --volume $PWD/mycontroller.yaml:/app/mycontroller.yaml --env TZ="America/New_York" --restart unless-stopped docker.io/mycontroller/server:2.1.0-devel
I was getting a warning about metrics at the top of the webpage. It looked like it wasn't connecting to Influx. Are the mycontroller.yaml setting the same for the binary and the docker container?
-
Are the mycontroller.yaml setting the same for the binary and the docker container?
Yes, same file/schema used on binary as well as for container.
@rayven you have to point to your influx db location, docker container always runs on it's own network space, if you specified
http://localhost:8086
, it tries inside container. Put your host ip address on it. also enable the metric database.- installation with docker container: https://mycontroller.org/docs/installation/quick-installation/docker-container/
- install influx database: https://mycontroller.org/docs/getting-started/install-influxdb/
- backend configurations: https://mycontroller.org/docs/installation/advanced-installation/backend-configuration/