Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mik-p/docker-wintercms in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
Pritchard, Michael (A&F, Black Mountain) authored and Pritchard, Michael (A&F, Black Mountain) committed Jan 13, 2022
2 parents 9fa8533 + e0dda6b commit ea01c7e
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Based on [official docker PHP images](https://hub.docker.com/_/php), images incl

To run Winter CMS using Docker, start a container using the latest image, mapping your local port 80 to the container's port 80:

```shell
```bash
$ docker run -p 8080:80 --name winter hiltonbanes/wintercms:latest
# `CTRL-C` to stop
$ docker rm winter # Destroys the container
Expand All @@ -57,6 +57,21 @@ $ docker rm winter # Destroys the container
- Hit `CTRL-C` to stop the container. Running a container in the foreground will send log outputs to your terminal.
- Run the container in the background by passing the `-d` option:

### Kubernetes

There are some example templates in the [kubernetes](./kubernetes) directory. Change the `secrets` and `ingress` files to support your environment requirements. Make sure to install [cert-manager](https://cert-manager.io/) to generate ssl certificates for secure ingress.

```bash
# start winter using kubernetes templates
kubectl apply -f kubernetes/
# to update deployment
kubectl apply -f kubernetes/
# to remove from cluster
kubectl delete -f kubernetes/
```

> __Note__: The kubernetes templates were tested in a Microk8s kubernetes cluster with default (hostpath) storage class. Depending on your cluster this will need to be changed in the `storage` template files.
<br>

## Working with Local Files
Expand Down Expand Up @@ -284,6 +299,8 @@ $ docker exec containername artisan plugin:install winter.user
$ docker exec -it containername tinker
```

> __Note__: There are other examples with different environment variables set up in the [examples](./examples) and [test](./test) directories.
<br>

## App Environment
Expand Down

0 comments on commit ea01c7e

Please sign in to comment.