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