tput: No value for $TERM and no -T specified Error: no DATABASE_URL was specified.
docker logs for the stringerrss container show:
tput: No value for $TERM and no -T specified Error: no DATABASE_URL was specified.
Standard install using downloaded docker-compose.yml from site and touched .env file.
Docker container for stringerrss and postgres are restarting constantly.
Logs show error above.
The only change to the docker-compose.yml was the port configuration:
ports: - 1337:8080
Installation: https://github.com/stringer-rss/stringer/blob/main/docs/Docker.md
docker-compose.yml
`version: '3'
services: stringer-setup: image: stringerrss/stringer:latest container_name: stringer-setup restart: no env_file: .env volumes: - ./.env:/app/.env entrypoint: ["ruby"] command: ["/app/docker/init_or_update_env.rb"]
stringer-postgres: image: postgres:16-alpine container_name: stringer-postgres restart: always depends_on: stringer-setup: condition: service_completed_successfully networks: - stringer-network volumes: - /srv/stringer/data:/var/lib/postgresql/data env_file: .env
stringer: image: stringerrss/stringer:latest container_name: stringer build: . depends_on: stringer-postgres: condition: service_started stringer-setup: condition: service_completed_successfully restart: always ports: - 1337:8080 networks: - stringer-network env_file: .env
networks: stringer-network: external: false name: stringer-network`
.env
GNU nano 7.2 .env
SECRET_KEY_BASE=024775df5db403b3955b80157459f70cd42d7a05f7001b61ffa70b168b577d42e250b90937cbd1cfeceb6c2f918dbab94827c1f[REDACTED] ENCRYPTION_PRIMARY_KEY=16b7473e5376e559f0fd70c56b8fb1368d0399d3f323aa09e289b6d120bc15bb56d7cd379804f91aff285c71c[REDACTED]> ENCRYPTION_DETERMINISTIC_KEY=1417312802976c7f6ac805b90d4e2f0ffb1e31e894601659b922d91d0f38fed8d4a96d76dbc35a6458[REDACTED]> ENCRYPTION_KEY_DERIVATION_SALT=4843ea1d253d40900f5f42498ea4dcf154807a95b6813d0ded95f719b15aded36ec67fe40[REDACTED]> POSTGRES_USER=stringer POSTGRES_PASSWORD=2081865a53b1459c2f0c1565dfd4289f72dbb[REDACTED] POSTGRES_HOSTNAME=stringer-postgres POSTGRES_DB=stringer FETCH_FEEDS_CRON=*/5 * * * * CLEANUP_CRON=0 0 * * * DATABASE_URL=postgres://stringer:2081865a53b1459c2f0c1565dfd4289f72dbb00ca4534d63361b84f6813dc11c@stringer-postgres/stringer
@varadins thanks for reporting! I'm not sure when I'll get a chance to look at this. If you have any familiarity with Docker, a PR would be very welcome.
Give me a hint as to what a "PR" is and I'll gladly provide it =) @mockdeep
@varadins A PR is a pull request. You would push changes up to a branch on Github branch and create a pull request to have those changes merged. You can read more about it on the Github docs.
In the provided docker-compose.yml the stringer-postgres and stringer services are missing the mounts for the .env file. Just add this like in the stringer-setup service:
...
volumes:
- ./.env:/app/.env
...