Closed koopernick closed 1 year ago
I seem to have a similar issue - docker containers start, but url does not respond.
Running docker logs cabot_web_1
shows errors with postgres connection.
I don't know python well enough to figure out what's wrong.
How about you follow the official docs? https://cabotapp.com/qs/quickstart.html
@C0rn3j, I did follow that
@tborychowski I meant that for OP who didn't seem to edit the compose file.
You can close this issue. I went with something else (that has a proper doc describing all the steps).
@koopernick would you mind sharing what? 🙂 I'm still looking...
As the author you should be able to close your own issue.
postgres made a breaking change in https://github.com/docker-library/postgres/issues/681 fix is to update docker-compose.yml
postgres:
- image: postgres:9.6-alpine
+ image: postgres:9.6.16-alpine
the image change worked for me. maybe this would have been called the the travis build but that one is failing due to sth. else, unfortunately.
postgres made a breaking change in docker-library/postgres#681 fix is to update docker-compose.yml
postgres: - image: postgres:9.6-alpine + image: postgres:9.6.16-alpine
This is the right way to solve the problem, it worked thank you
Thanks for reporting and providing a fix − I pushed it as 961d0f4 over in cabotapp/docker-cabot.
Well... Don't you think that the right way to fix this is to provide a password for the postgres db ?
Add an environment variable in the db service in the docker-compose.yml file: db: image: postgres:alpine environment:
and in the development.env.example file, provide this password to in the connection string: DATABASE_URL=postgres://postgres:cabot-password@db:5432/postgres
@redge76
Well... Don't you think that the right way to fix this is to provide a password for the postgres db ?
Add an environment variable in the db service in the docker-compose.yml file: db: image: postgres:alpine environment:
- POSTGRES_PASSWORD=cabot-password volumes:
- datavolume:/var/lib/postgresql/data
and in the development.env.example file, provide this password to in the connection string: DATABASE_URL=postgres://postgres:cabot-password@db:5432/postgres
Arguably a better solution indeed, thanks @redge76. See https://github.com/cabotapp/docker-cabot/pull/42
Hello,
I wanted to try your cabot docker version, but it seems it doesn't work out of the box (unless I missed something).
Fresh VM (debian 10). Installed docker + docker compose
and I followed this => https://github.com/arachnys/cabot/issues/675#issuecomment-562936874
But then, this => http://192.168.1.27:5000 doesn't work (local IP of the VM).
I'm not familiar with docker (I kind of hate it, not gonna lie), so I don't really know what to check.
Any help would be appreciated !