Open uliss3s opened 1 year ago
I think that the docker compose envs SQLALCHEMY_DATABASE_URI and WRITE_ENGINE_URL are being ignored.
Added a volume bind to an external .env file and now it connected as expected.
Hi @uliss3s , do you mind making a PR with your changes?
Hi @uliss3s , do you mind making a PR with your changes?
This is not needed anymore. I just pulled the last changes from the project and it's working fine.
Hi @uliss3s , do you mind making a PR with your changes?
This is not needed anymore. I just pulled the last changes from the project and it's working fine.
Fake news. I just forgot to remove the volume bind in the docker-compose.yml.
The version 0.14.1 still ignores the envs variables SQLALCHEMY_DATABASE_URI and WRITE_ENGINE_URL.
To work i need to bind the .env file from the host to the container:
volumes:
- ./config/.env:/etc/ckan/datapusher/.env:ro
I have a ckan docker compose setup running on a specific docker network. Ex.: ckan_network
I changed the docker-compose.yml from the datapusher-plus-docker to use this network and updated the env variables accordingly.
db is the postgres instance. Running some commands inside de datapusher container:
But the datapusher-plus container throw errors trying to connect to "localhost".
Error