2020-10-06 19:09:14 +00:00
|
|
|
# Custom HTML
|
2020-10-06 18:48:21 +00:00
|
|
|
|
2020-10-06 19:09:14 +00:00
|
|
|
Custom HTML website, served using Nginx.
|
2020-10-06 18:48:21 +00:00
|
|
|
|
|
|
|
## Basic usage
|
|
|
|
|
|
|
|
1. Set up Docker Swarm and [`abra`]
|
|
|
|
2. Deploy [`compose-stacks/traefik`]
|
|
|
|
3. `git clone https://git.autonomic.zone/compose-stacks/custom-html.git && cd custom-html`
|
|
|
|
3. `cp .envrc.sample .envrc`
|
|
|
|
4. Edit `.envrc` - be sure to change `DOMAIN` to something that resolves to
|
|
|
|
your Docker swarm box
|
|
|
|
5. `direnv allow` (or `. .envrc`)
|
|
|
|
6. `abra deploy`
|
2020-10-06 19:09:14 +00:00
|
|
|
7. Copy your files to the container, using something like
|
|
|
|
```
|
|
|
|
abra cp index.html app:/usr/share/nginx/html
|
|
|
|
```
|
2020-10-06 18:48:21 +00:00
|
|
|
|
|
|
|
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
|
|
|
|
[`compose-stacks/traefik`]: https://git.autonomic.zone/compose-stacks/traefik
|