Skip to content

Commit be893eb

Browse files
authored
Merge pull request #13198 from cdrini/fix/ol-home-hostname
Use docker compose extra_hosts to work around ol-home0 issues
2 parents 74010c6 + 37799b8 commit be893eb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

compose.production.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ services:
1717
volumes:
1818
- ../olsystem:/olsystem
1919
- ../olsystem/etc/ia.ini:/home/openlibrary/.config/ia.ini
20+
extra_hosts:
21+
# openlibrary.yml needs to reference the service name, to avoid some issues with how we
22+
# use hostname, and a cyclical networks request (or something)
23+
infobase_nginx: 207.241.234.145 # ol-home0.us.archive.org
2024

2125
fast_web:
2226
profiles: ["ol-web0", "ol-web1", "ol-web2", "ol-web3"]
@@ -29,6 +33,10 @@ services:
2933
volumes:
3034
- ../olsystem:/olsystem
3135
- ../olsystem/etc/ia.ini:/home/openlibrary/.config/ia.ini
36+
extra_hosts:
37+
# openlibrary.yml needs to reference the service name, to avoid some issues with how we
38+
# use hostname, and a cyclical networks request (or something)
39+
infobase_nginx: 207.241.234.145 # ol-home0.us.archive.org
3240

3341
solr:
3442
# Disabled until next solr reindex due to solr version upgrade
@@ -102,6 +110,10 @@ services:
102110
volumes:
103111
- ../olsystem:/olsystem
104112
- /1:/1
113+
extra_hosts:
114+
# openlibrary.yml needs to reference the service name, to avoid some issues with how we
115+
# use hostname, and a cyclical networks request (or something)
116+
infobase_nginx: 207.241.234.145 # ol-home0.us.archive.org
105117
deploy:
106118
# Note: the replicas here must be kept in sync with the `upstream covers_backend`
107119
# value in `docker/covers_nginx.conf`.

0 commit comments

Comments
 (0)