2020-02-06 16:26:11 +00:00
|
|
|
# Docker Development
|
|
|
|
|
2020-09-21 12:02:40 +00:00
|
|
|
## Dependencies (on Ubuntu)
|
2019-12-31 14:31:34 +00:00
|
|
|
|
|
|
|
```bash
|
2020-06-12 13:29:50 +00:00
|
|
|
sudo apt install git docker-compose
|
2020-09-21 12:02:40 +00:00
|
|
|
sudo systemctl start docker
|
2020-04-09 20:11:11 +00:00
|
|
|
git clone https://github.com/LemmyNet/lemmy
|
2020-09-21 12:02:40 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Running
|
|
|
|
|
|
|
|
```bash
|
2019-12-31 14:31:34 +00:00
|
|
|
cd lemmy/docker/dev
|
2020-06-12 13:29:50 +00:00
|
|
|
sudo docker-compose up --no-deps --build
|
2019-12-31 14:31:34 +00:00
|
|
|
```
|
|
|
|
|
2020-09-15 19:26:47 +00:00
|
|
|
and go to http://localhost:1235.
|
|
|
|
|
|
|
|
*Note: many features (like docs and pictures) will not work without using an nginx profile like that in `ansible/templates/nginx.conf`.
|
2019-12-31 14:31:34 +00:00
|
|
|
|
2020-06-12 13:29:50 +00:00
|
|
|
To speed up the Docker compile, add the following to `/etc/docker/daemon.json` and restart Docker.
|
|
|
|
```
|
|
|
|
{
|
|
|
|
"features": {
|
|
|
|
"buildkit": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
If the build is still too slow, you will have to use a
|
|
|
|
[local build](contributing_local_development.md) instead.
|