New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose up
does not work
#3075
Comments
It's a know issue, im working improving the docker image of ckan, you can use the docker-cloud.yml in http://cloud.docker.com for now, or follow this legacy instructions http://docs.ckan.org/en/ckan-1.3.3/maintaining/installing/install-using-docker.html#installing-ckan The actual image is not ready for production, CMD script and CKAN docker image needs to be full rewrite |
Why not update the docker compose file until that work is done? |
Because it docker-compose.yml should work without that ENV, they are in the postgres image, the link between the containers works well, but https://github.com/ckan/ckan/blob/master/contrib/docker/my_init.d/50_configure should handle that, but is going to be rewrited. I will rewrite it less than a week, on this sunday will be PR with the stability improvements and size reduced. |
Any update on this? |
I'm looking the documentation, for some reason, when using |
That's because envs and links are deprecated. I'd recommend using the docker network feature instead. Then the containers can communicate via service name quite easily. I'm working on an implementation and will share when I finish. If you do want to use the link feature, instead of looking for an env, you can still just use the container name as a URL e.g. |
Any news on this? |
@rwillmer I have a working implementation here: https://github.com/dmfenton/ckan-docker |
thanks @dmfenton |
@dmfenton Should be fixed, can you check it? |
We have a pretty far along build https://github.com/vta/Open-Data-Portal |
We decided to close old issues that are not actively worked on so that we can focus our effort and attention on issues affecting the current versions of CKAN. If this issue is still affecting the version of CKAN you're working with now, please feel free to comment or reopen the issue. If you do reopen this issue, please update it with new details. One reason it might not have been resolved in the past is that it wasn't clear how a contributor could address the issue. |
The way that you are specifying environmental variables in these lines is incorrect: https://github.com/ckan/ckan/blob/master/contrib/docker/my_init.d/50_configure#L36-L49
As a result the CKAN container cannot connect to the DB or SOLR
I added the ENV's for
DATABASE_URL
andSOLR_URL
directly into docker-compose.yml and everything works.My Docker version info:
The text was updated successfully, but these errors were encountered: