internetarchive / internetarchive/openlibrary
Don't use duplicate hostnames for prod docker containers
Open
Affects: Admin/Maintenance
Lead: @cdrini
Priority: 3
Type: Refactor/Clean-up
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 2k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 138
Description
Currently we set the container's hostname to the host machine's hostname. This means multiple containers have the same hostname, which might be causing some of our issue w.r.t to accessing the host machine from a container. Switch to something more unique.
Eg instead of `ol-home0` -> `ol-home0-solr_updater-1` . Effectively `{hostname}-{service name}-{instance}`.
Concerns:
- webserver logs use the hostname to write the logs to archive.org I think. Need to make sure that still writes to the same place.
### Stakeholders
@cclauss
Contributor guide
Assessment
This issue has not been assessed yet.