lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

[Bug]: Docker installation steps are not valid

Open jmaister opened this issue 2 years ago • 3 comments

Requirements

  • [X] Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • [X] Did you check to see if this issue already exists?
  • [X] Is this only a single bug? Do not put multiple bugs in one issue.
  • [X] Is this a UI / front end issue? Use the lemmy-ui repo.

Summary

When following the steps on https://join-lemmy.org/docs/en/administration/install_docker.html to run lemmy with docker, it fails as the docker-compose.yml file requires the whole project to be cloned.

The lemmy step requires to build the application. That means to clone the whole project instead of just doing wget on those two files.

https://github.com/LemmyNet/lemmy/blob/ebd8c86f0ee6e42f5b4f3212af7f7806c404b035/docker/docker-compose.yml#L41

Steps to Reproduce

  1. Follow instructions on https://join-lemmy.org/docs/en/administration/install_docker.html

Technical Details

jordi@xxx:~/projects/lemmy$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:        20.04
Codename:       focal
jordi@xxx:~/projects/lemmy$ docker --version
Docker version 20.10.21, build 20.10.21-0ubuntu1~20.04.2

Version

main

Lemmy Instance URL

No response

jmaister avatar Jun 14 '23 22:06 jmaister

If you uncomment line 38 and then comment out 41-43 it seems to work

Edit: Apparently you also need to add port 80 under the proxy section as well to actually access it

jhnhnck avatar Jun 15 '23 21:06 jhnhnck

I also had to enable docker buildkit (following these instructions), and put quotes around the max_file value in docker-compose.yml

RyantHults avatar Jun 18 '23 19:06 RyantHults

If you uncomment line 38 and then comment out 41-43 it seems to work

Edit: Apparently you also need to add port 80 under the proxy section as well to actually access it

Just want to mention that you'll run on the dev branch by doing that. For running the current version you have to append the version number instead of dev

arne-fuchs avatar Jun 22 '23 11:06 arne-fuchs

I think this is fixed already, anyway it belongs in docs repo.

Nutomic avatar Jun 30 '23 13:06 Nutomic

I don't believe this is fixed as of 1.18.1-rc4, and it doesn't belong in the docs repo.

This issue is related to the docker compose file in this repo not referencing the pre-built lemmy docker image, but instead requiring it be built from scratch which differs from how lemmy-ui and the other containers are currently defined. What the docs says would be correct if this file was fixed.

jhnhnck avatar Jun 30 '23 13:06 jhnhnck

The docker-compose file in this repo is for development, not production. It also isnt linked in the current docs.

Nutomic avatar Jun 30 '23 14:06 Nutomic