diff --git a/src/en/administration/install_docker.md b/src/en/administration/install_docker.md index c590f27..a57e0d8 100644 --- a/src/en/administration/install_docker.md +++ b/src/en/administration/install_docker.md @@ -16,39 +16,31 @@ mkdir -p volumes/pictrs sudo chown -R 991:991 volumes/pictrs ``` -Open up your `docker-compose.yml`, and make sure `LEMMY_EXTERNAL_HOST` for `lemmy-ui` is set to your correct host. - -``` -- LEMMY_INTERNAL_HOST=lemmy:8536 -- LEMMY_EXTERNAL_HOST=your-domain.com -- LEMMY_HTTPS=false -``` - If you'd like a different database password, you should also change it in the `docker-compose.yml` **before** your first run. After this, have a look at the [config file](configuration.md) named `lemmy.hjson`, and adjust it, in particular the hostname, and possibly the db password. Then run: `docker-compose up -d` -You can access the lemmy-ui at `http://localhost:1235` +You can access the lemmy-ui at `http://localhost:80` -To make Lemmy available outside the server, you need to setup a reverse proxy, like Nginx. [A sample nginx config](https://github.com/LemmyNet/lemmy-ansible/blob/main/templates/nginx.conf), could be setup with: +To make Lemmy available outside the server, you need to setup a reverse proxy, like Nginx. You can use the following simple proxy: -```bash -wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx.conf -# Replace the {{ vars }} -# The default lemmy_port is 8536 -# The default lemmy_ui_port is 1235 -sudo mv nginx.conf /etc/nginx/sites-enabled/lemmy.conf +``` +server_name your_domain; +location / { + proxy_pass http://localhost:LEMMY_PORT; + include proxy_params; +} ``` -You will also need to setup TLS, for example with [Let's Encrypt](https://letsencrypt.org/). After this you need to restart Nginx to reload the config. +You can also setup TLS, for example with [Let's Encrypt](https://letsencrypt.org/). After this you need to restart Nginx to reload the config. ## Updating To update to the newest version, you can manually change the version in `docker-compose.yml`. Alternatively, fetch the latest version from our git repo: ```bash -wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/prod/docker-compose.yml +wget https://raw.githubusercontent.com/LemmyNet/lemmy/main/docker/docker-compose.yml docker-compose up -d ```