-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Cypht | ||
|
||
This is the official docker image of [Cypht](https://cypht.org/). | ||
|
||
## Features of this image | ||
|
||
* Alpine linux based image | ||
* Bundled nginx and PHP 7 provides everything in one image | ||
* Performs same install steps as found on [Cypht install page](https://cypht.org/install.html) | ||
* All Cypht mods and configuration options can be set via environment variables | ||
* Automatic database setup (if configured to use database) | ||
|
||
## Example docker-compose | ||
|
||
See example file here: | ||
https://github.com/jonocodes/cypht/blob/docker-refresh/docker/docker-compose.yaml | ||
|
||
* Starts a database container to be for user authentication | ||
* Starts the Cypht container available on port 80 of the host with ... | ||
* A local volume declared for persisting user settings across container reboots | ||
* An initial user account for authentication | ||
* Environment variables for accessing the database container | ||
|
||
*NOTE: Please change usernames and passwords before using this docker-compose in your environment* | ||
|
||
## Environment variables | ||
|
||
See all the environment variables you can set here: | ||
https://github.com/cypht-org/cypht/blob/master/.env.example | ||
|
||
It is recommended that in production you instead make a copy of this file: | ||
``` | ||
cp .env.example /etc/cypht-prod.env | ||
``` | ||
|
||
Make changes to it and source it in to the docker-compose via 'env_file': | ||
```yaml | ||
env_file: | ||
- /etc/cypht-prod.env | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters