A simple init script solution for a docker compose ready WriteFreely instance.
|
|
1 mēnesi atpakaļ | |
|---|---|---|
| bootstrap | 1 mēnesi atpakaļ | |
| production | 1 mēnesi atpakaļ | |
| .gitignore | 1 mēnesi atpakaļ | |
| Readme.md | 1 mēnesi atpakaļ | |
| init.sh | 1 mēnesi atpakaļ | |
| track_defaults.patch | 1 mēnesi atpakaļ |
First, download the release of writefreely for your operating system. See the releases page on GitHub.
Next, run init.sh to prepare the production ready environment. init.sh does
the following in order.
Copies a writefreely tarball to ./bootstrap
Uses docker run to run writefreely config start, copying results to
./bootstrap/data
Copies a writefreely tarball to ./production, alongside files from
./bootstrap/data
Runs docker compose build to create the image
Finally, edit the docker-compose.yml file in ./production. The existing
compose file provides some sensible defaults, but you may customize as you see
fit.
When ready, use cd into production and use docker compose up to run the
resulting production ready image.