]> Untitled Git - lemmy.git/blobdiff - docs/src/contributing_docker_development.md
Isomorphic docker (#1124)
[lemmy.git] / docs / src / contributing_docker_development.md
index 092398219ba34ac29d6755bdb7fad4dd42c4f183..23b9fa00506fdf81b93d6543bedfa758748a7636 100644 (file)
@@ -3,11 +3,24 @@
 ## Running
 
 ```bash
+sudo apt install git docker-compose
 git clone https://github.com/LemmyNet/lemmy
 cd lemmy/docker/dev
-./docker_update.sh # This builds and runs it, updating for your changes
+sudo docker-compose up --no-deps --build
 ```
 
-and go to http://localhost:8536.
+and go to http://localhost:1235.
 
-Note that compile times when changing `Cargo.toml` are relatively long with Docker, because builds can't be incrementally cached. If this is a problem for you, you should use [Local Development](contributing_local_development.md).
+*Note: many features (like docs and pictures) will not work without using an nginx profile like that in `ansible/templates/nginx.conf`.
+
+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.