A simple init script solution for a docker compose ready WriteFreely instance.
|
|
1 сар өмнө | |
|---|---|---|
| bootstrap | 1 сар өмнө | |
| production | 1 сар өмнө | |
| .gitignore | 1 сар өмнө | |
| Readme.md | 1 сар өмнө | |
| init.sh | 1 сар өмнө | |
| track_defaults.patch | 1 сар өмнө |
First, 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, alonside files from
./bootstrap/data
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.