Hi Niklas! It seems you are trying to start services individually for which you would need to create docker networks first (I haven't tested this way).
I suggest following the steps here: https://github.com/apache/fineract-cn-docker-compose#start-external-tools-database-cassandra-etc basically the instructions tell you to do the following: 1. git clone https://github.com/apache/fineract-cn-docker-compose.git 2. cd fineract-cn-docker-compose.git now use several terimals in parallel: With terminal #1: 3. cd external-tools 4. docker-compose up Wait for services to start and then with terminal #2: 5. docker-compose up provisioner-ms Wait for the application to start and then with terminal #3 start set of micro services. The minimum amount would be Identity, Rhythm, Fims-web-app and one or both of Customer and Office I usually start this list to run Postman provisioning requests: docker-compose up rhythm-ms identity-ms office-ms customer-ms portfolio-ms accounting-ms deposit-ms fims-web-app together with provisioner and external services this is pretty much the maximum that my 16gb mac can handle. Juhan Kontakt Niklas Uhrberg (<[email protected]>) kirjutas kuupäeval R, 27. september 2019 kell 11:47: > Thanks for the response (and welcome) Juhan! > > I did the following: > > 1. Start the services in external tools > 2. Try to start fims-web-app : This fails with the message "...host not > found in upstream "identity-ms"..." > 3. Note that identity-ms is the first location config in > fineract-cn-fims-web-app/scripts/nginx/docker.nginx.conf > 4. Start the identity-ms > 5. Try to start fims-web-app againg : Now it fails with "....host not > found in upstream "office-ms"...." > 6. Note that office-ms is the second location in docker.nginx.conf > > and so on. > > Does this mean that fims-web-app requires all the services listed in the > docker.ngix-conf have to be up and running? > > I did change to the new image you build, but I get the same behaviour. > I did not try the work around yet, since the behaviour of fims-web-app > seems to depend on which services are up and running. > > The memory on my machine is a bit limited so running all the services > listed in the docker.nginx.conf is unrealistic. > Question: Does fims-web-app need all the services only considering the > functionality? > > > BR Niklas > > > > Niklas Uhrberg > Konsult > IT Development | Loans & Credit > > > > Resurs Bank AB > > > > Växel: +46 42 38 20 00 > E-post: [email protected] > Webb: www.resursbank.se > > > > ------------------------------ > *From:* Juhan Aasaru [[email protected]] > *Sent:* Thursday, September 26, 2019 9:50 PM > *To:* Dev > *Subject:* Re: Fineract CN public Docker images are now available > > Hi Niklas! > > Welcome to the mailing list! > > I haven't experienced this issue myself but googling the error > suggested that there might be a bug with how some docker images resolve DNS > on some platforms. > > I updated the Dockerfile of fims-web-app to use the latest public images > in hope that this issue is fixed in the newest version. > If you have time test it out by replacing inside root docker-compose of > fineract-cn-docker-compose > > Search this: > > fims-web-app: > image: apache/fineract-cn-fims-web-app:latest > > Replace with: > > fims-web-app: > image: aasaru/fineract-cn-fims-web-app:latest > > My image is built from this PR: > https://github.com/apache/fineract-cn-fims-web-app/pull/21/files > > If it doesn't work then you could also try a workaround. > In > https://github.com/apache/fineract-cn-fims-web-app/blob/develop/scripts/nginx/docker.nginx.conf > replace DNS names of micro services with IP addresses taken from > > https://github.com/apache/fineract-cn-docker-compose/blob/master/env_variables > for example replace "office-ms" with 172.16.238.23 and so on > and then build a new Docker image and use that instead of the public one. > > Regards > Juhan > > Kontakt Niklas Uhrberg (<[email protected]>) kirjutas kuupäeval N, > 26. september 2019 kell 18:47: > >> Hi! >> >> This is my first interaction in the mailing list :=) >> >> Firstly, thank's for the great job with containerization and the >> documentation. >> >> I have followed the documentation and things seem to work nicely (some >> errors during startup of some services, but I don't yet know if they are >> fatal). >> >> However, I cannot start the fims-web-app, see the following from my >> terminal: >> >> niklas@niklas-Latitude-E7440:~/git/fineract-clone/fineract-cn-docker-compose$ >> docker-compose up fims-web-app >> WARNING: Some services (identity-ms, provisioner-ms, rhythm-ms) use the >> 'deploy' key, which will be ignored. Compose does not support 'deploy' >> configuration - use `docker stack deploy` to deploy to a swarm. >> Starting fineract-cn-docker-compose_fims-web-app_1 ... done >> Attaching to fineract-cn-docker-compose_fims-web-app_1 >> fims-web-app_1 | 2019/09/26 15:38:04 [emerg] 1#1: host not found in >> upstream "office-ms" in /etc/nginx/nginx.conf:34 >> fims-web-app_1 | nginx: [emerg] *host not found in upstream >> "office-ms" in /etc/nginx/nginx.conf:34* >> fineract-cn-docker-compose_fims-web-app_1 exited with code 1 >> >> >> Please let me know how I can remedy this, if you have an idea about what >> is happening. >> >> BR Niklas >> >> >> >> >> >> >> Niklas Uhrberg >> Konsult >> IT Development | Loans & Credit >> >> >> >> Resurs Bank AB >> >> >> >> Växel: +46 42 38 20 00 >> E-post: [email protected] >> Webb: www.resursbank.se >> >> >> >> ------------------------------ >> *From:* Juhan Aasaru [[email protected]] >> *Sent:* Sunday, September 15, 2019 8:56 AM >> *To:* Dev >> *Subject:* Fineract CN public Docker images are now available >> >> Hi! >> >> I have completed seting up public DockerHub images for all Fineract-CN >> applications and also updated Docker-Compose scripts to run them. Docker >> images are automatically built and uploaded to: >> https://hub.docker.com/r/apache/fineract-cn-<projectname> >> >> So if anyone wants to try out Fineract-CN at their own computer then >> there is one command to start up Postgres, Cassandra ActiveMQ and another >> command to start up a set of Fineract CN micro services like this: >> >> docker-compose up provisioner-ms identity-ms office-ms customer-ms >> accounting-ms fims-web-app >> >> Documentation is here: >> * >> https://cwiki.apache.org/confluence/display/FINERACT/DockerHub+images#DockerHubimages-RunningwithDockerCompose >> * https://github.com/apache/fineract-cn-docker-compose >> >> Thank you Awasum, Courage, Vishwas and Michael for all the help and >> previous work. >> >> Following repositories: >> * https://github.com/openMF/fineract-cn-containers >> * https://github.com/vishwasbabu/ProvisioningFineractCN >> can now be archived as I have defeloped furter the work there and the >> outcome is now available here: >> https://github.com/apache/fineract-cn-docker-compose >> >> Kind regards >> Juhan >> >>
