Move volumes into subfolder (ref #474) #23
Loading…
Reference in New Issue
No description provided.
Delete Branch "nutomic/lemmy:docker-volumes-in-subfolder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Realized that this one is actually pretty easy. Instructions (already verified on test.lemmy.ml, should go in the changelog)
@dessalines Btw the volume
lemmy_iframely
was unused, not sure if that is actually needed.Also, is there a particular reason that you put a
lemmy_
prefix for the container names? It seems like docker-compose automatically puts the folder name as prefix, so if you rundocker container ls
(and in other places), you see names likelemmy_lemmy_db_1
which is redundant.Scares me a little bit bc I know
docker-compose down
removes nearly everything, but it looks like it leaves the volumes in place. I'll test locally too.Good call, you could remove those too.
One other suggestion: could you change the iframely port? I have these two in
lib.rs
:It makes sense for both their internal ports to be
80
to make those fetches clean. Also obvi those fetch_urls will need to change tohttp://iframely/oembed...
andhttp://pictshare/api...
Oh and those volumes folders will need to be added to the
.gitignore
for the dev folder.It worked btw, nice!
docker-compose down
just stops the running containers, the only thing it removes is the network afaik. I never had any problems with running it.Did the changes you mentioned, already tested it locally and on test.lemmy.ml. If you update an instance where you already added the previous commit, you have to run
docker-compose down
before the upgrade (otherwise just do both at once).Also please squash the commits before merging, Gitea has a button for that.
This broke Iframely on the back end for some reason.
logs:
iframely err: CouldntResolveHost: couldn't resolve host name
edit: actually wait, it might be because I didn't rebuild with
docker-compose up -d --no-deps --build
Yup that was it, my bad.