dotmatrix@lemmy.ftp.ripOPtoLemmy Support@lemmy.ml•[Resolved] Can't upload picturesEnglish
2·
1 year agoYeah no, DNS works in the containers:
dot@deepthought:~# docker exec -it lemmy-lemmy-1 ping pictrs
PING pictrs (192.168.7.2): 56 data bytes
64 bytes from 192.168.7.2: seq=0 ttl=64 time=0.079 ms
However, your hunch did actually turn out to be correct in that there’s still a networking issue: I opened a port for pictrs and hit the API with postman, and noticed it would show up in the pictrs logs which were empty before.
So I changed the url
to the host’s IP and the open port, and now it works. :)
lemmy.hjson:
pictrs: {
url: "http://192.168.123.21:4808"
api_key: "apikey"
}
docker-compose.yaml:
pictrs:
...
ports:
- "4808:8080"
Look here, I might have had the same issue: https://lemmy.ml/post/1509599