|
@@ -1 +1,17 @@
|
|
|
-1. docker build -t writefreely .
|
|
|
|
|
|
|
+## Usage
|
|
|
|
|
+
|
|
|
|
|
+First, run `init.sh` to prepare the production ready environment. `init.sh` does the
|
|
|
|
|
+following, in order.
|
|
|
|
|
+
|
|
|
|
|
+1. Copies a writefreely tarball to `./bootstrap`
|
|
|
|
|
+
|
|
|
|
|
+2. Uses `docker run` to run `writefreely config start`, copying results to
|
|
|
|
|
+ `./bootstrap/data`
|
|
|
|
|
+
|
|
|
|
|
+3. Copies a writefreely tarball to `./production`, alonside files from
|
|
|
|
|
+ `./bootstrap/data`
|
|
|
|
|
+
|
|
|
|
|
+4. Runs `docker compose build` to create the image
|
|
|
|
|
+
|
|
|
|
|
+Next, edit the `docker-compose.yml` file in `./production`. The existing compose
|
|
|
|
|
+file provides some sensible defaults, but you may customize as you see fit.
|