]> Untitled Git - lemmy.git/blob - docs/src/administration_install_docker.md
Merge branch 'master' into iframely
[lemmy.git] / docs / src / administration_install_docker.md
1 # Docker Installation
2
3 Make sure you have both docker and docker-compose(>=`1.24.0`) installed:
4
5 ```bash
6 mkdir lemmy/
7 cd lemmy/
8 wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/prod/docker-compose.yml
9 wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/lemmy.hjson
10 wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/iframely.config.local.js
11 # Edit lemmy.hjson, and docker-compose.yml to do more configuration (like adding a custom password)
12 docker-compose up -d
13 ```
14
15 and go to http://localhost:8536.
16
17 [A sample nginx config](/ansible/templates/nginx.conf) (Note: Avatar / Image uploading won't work without this), could be setup with:
18
19 ```bash
20 wget https://raw.githubusercontent.com/dessalines/lemmy/master/ansible/templates/nginx.conf
21 # Replace the {{ vars }}
22 sudo mv nginx.conf /etc/nginx/sites-enabled/lemmy.conf
23 ```
24 ## Updating
25
26 To update to the newest version, run:
27
28 ```bash
29 wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/prod/docker-compose.yml
30 docker-compose up -d
31 ```