From 1728229fabd5f189dd022c968254e01ef0f80ad3 Mon Sep 17 00:00:00 2001 From: Rodolfo Berrios <20590102+rodber@users.noreply.github.com> Date: Sat, 20 Nov 2021 11:34:11 -0300 Subject: [PATCH] docker docs --- docs/BUILDING.md | 21 +++++++++++++++++++++ docs/COMPOSE.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 docs/BUILDING.md create mode 100644 docs/COMPOSE.md diff --git a/docs/BUILDING.md b/docs/BUILDING.md new file mode 100644 index 0000000..b4de95d --- /dev/null +++ b/docs/BUILDING.md @@ -0,0 +1,21 @@ +# Building + +## Composer + +`todo` + +## Docker build + +* **Tip:** Tag `ghcr.io/rodber/chevereto-free-httpd-php:1.6` to override the [ghcr package](https://github.com/orgs/rodber/packages?repo_name=chevereto-free) with local + +```sh +docker build -t ghcr.io/rodber/chevereto-free-httpd-php:1.6 . \ + -f httpd-php.Dockerfile +``` + +* For custom tag: Replace `tag` with your own. + +```sh +docker build -t rodber/chevereto-free-httpd-php:tag . \ + -f httpd-php.Dockerfile +``` diff --git a/docs/COMPOSE.md b/docs/COMPOSE.md new file mode 100644 index 0000000..abec6b4 --- /dev/null +++ b/docs/COMPOSE.md @@ -0,0 +1,42 @@ +# Compose + +Compose file: [httpd-php.yml](../httpd-php.yml) + +## Up + +Run this command to spawn (start) Chevereto-Free. + +```sh +docker-compose \ + -p chevereto-free \ + -f httpd-php.yml \ + up --abort-on-container-exit +``` + +[localhost:8810](http://localhost:8810) + +## Stop + +Run this command to stop Chevereto-Free. + +```sh +docker-compose \ + -p chevereto-free \ + -f httpd-php.yml \ + stop +``` + +### Down (uninstall) + +Run this command to down Chevereto (stop containers, remove networks and volumes created by it). + +```sh +docker-compose \ + -p chevereto-free \ + -f httpd-php.yml \ + down --volumes +``` + +## Logs + +`todo`