docker docs

This commit is contained in:
Rodolfo Berrios 2021-11-20 11:34:11 -03:00
parent 886bd1e38e
commit 1728229fab
No known key found for this signature in database
GPG key ID: D3AAC2481DBDD9FE
2 changed files with 63 additions and 0 deletions

21
docs/BUILDING.md Normal file
View file

@ -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
```

42
docs/COMPOSE.md Normal file
View file

@ -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`