Sign inSign up

omaerz/craftcms-nginx-php8

By omaerz

•Updated about 2 years ago
Archived

CraftCMS Docker container with git client setup (support for ssh keys via environment)

Image
0

608

omaerz/craftcms-nginx-php8 repository overview

CraftCMS Docker container with nginx and PHP 8.0. Image is based on the official CraftCMS docker image: https://github.com/craftcms/docker/tree/main/nginx⁠ with modifications:

  • fixed file permissions to error log location
  • added git client
  • added some logic for deployment keys

amd64 & arm64

The included git client is thought for deployment purposes. You can mount your git deployment key (private ssh key for deployment) to /etc/keyfiles/deploy-key and git will automatically use it.

For example to mount the private key with Kubernetes you could use something like:

volumes:
        - name: deploy-key-volume
          secret:
            secretName: deploy-keys
            defaultMode: 256

in your deployment yaml file and:

secretGenerator:
  - name: deploy-keys
    files:
      - ./deploy-key

in you kustomization yaml (with the file deploy-key containing your private ssh deployment key).

⁠Changes:
  • 1.1 PHP 8.0 with updated public GitHub public key in the ~/.ssh/known_hosts
  • 1.0 PHP 8.0

Tag summary

Content type

Image

Digest

sha256:fc6b97265…

Size

299.8 MB

Last updated

about 2 years ago

docker pull omaerz/craftcms-nginx-php8:1.1