]> Untitled Git - lemmy.git/blob - docs/src/administration_install_docker.md
Merge branch 'master' into dev
[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 # Edit lemmy.hjson, and docker-compose.yml to do more configuration (like adding a custom password)
11 docker-compose up -d
12 ```
13
14 and go to http://localhost:8536.
15
16 [A sample nginx config](/ansible/templates/nginx.conf) (Note: Avatar / Image uploading won't work without this), could be setup with:
17
18 ```bash
19 wget https://raw.githubusercontent.com/dessalines/lemmy/master/ansible/templates/nginx.conf
20 # Replace the {{ vars }}
21 sudo mv nginx.conf /etc/nginx/sites-enabled/lemmy.conf
22 ```
23 ## Updating
24
25 To update to the newest version, run:
26
27 ```bash
28 wget https://raw.githubusercontent.com/dessalines/lemmy/master/docker/prod/docker-compose.yml
29 docker-compose up -d
30 ```