]> Untitled Git - lemmy.git/blobdiff - docs/src/contributing_docker_development.md
Isomorphic docker (#1124)
[lemmy.git] / docs / src / contributing_docker_development.md
index 0ed5bde5e148834d9f98fd1096235109f18f8a4e..23b9fa00506fdf81b93d6543bedfa758748a7636 100644 (file)
@@ -1,11 +1,26 @@
-Run:
+# Docker Development
+
+## Running
 
 ```bash
-git clone https://github.com/dessalines/lemmy
+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: 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
+  }
+}
+```
 
-Note that compile times are relatively long with Docker, because builds can't be properly cached. If this is a problem for you, you should use [Local Development](contributing_local_development.md).
\ No newline at end of file
+If the build is still too slow, you will have to use a
+[local build](contributing_local_development.md) instead.