2020-02-06 16:26:11 +00:00
|
|
|
# Docker Installation
|
|
|
|
|
2019-12-31 14:31:34 +00:00
|
|
|
Make sure you have both docker and docker-compose(>=`1.24.0`) installed:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
mkdir lemmy/
|
|
|
|
cd lemmy/
|
|
|
|
wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/prod/docker-compose.yml
|
|
|
|
wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/lemmy.hjson
|
2020-02-17 16:18:01 +00:00
|
|
|
wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/iframely.config.local.js
|
2020-02-06 16:26:11 +00:00
|
|
|
# Edit lemmy.hjson, and docker-compose.yml to do more configuration (like adding a custom password)
|
2019-12-31 14:31:34 +00:00
|
|
|
docker-compose up -d
|
|
|
|
```
|
|
|
|
|
|
|
|
and go to http://localhost:8536.
|
|
|
|
|
2020-02-06 16:26:11 +00:00
|
|
|
[A sample nginx config](/ansible/templates/nginx.conf) (Note: Avatar / Image uploading won't work without this), could be setup with:
|
2019-12-31 14:31:34 +00:00
|
|
|
|
|
|
|
```bash
|
|
|
|
wget https://raw.githubusercontent.com/dessalines/lemmy/master/ansible/templates/nginx.conf
|
|
|
|
# Replace the {{ vars }}
|
|
|
|
sudo mv nginx.conf /etc/nginx/sites-enabled/lemmy.conf
|
|
|
|
```
|
2020-02-06 16:26:11 +00:00
|
|
|
## Updating
|
2019-12-31 14:31:34 +00:00
|
|
|
|
|
|
|
To update to the newest version, run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/prod/docker-compose.yml
|
|
|
|
docker-compose up -d
|
|
|
|
```
|