Sign inSign up

omaerz/craftcms

By omaerz

•Updated over 5 years ago
Archived

CraftCMS Docker container based nginx and PHP 7.4 (w/git client)

Image
0

297

omaerz/craftcms repository overview

CraftCMS Docker container with nginx and PHP 7.4. It is based on the official CraftCMS docker: https://github.com/craftcms/docker/tree/main/7.4⁠ with some modification (fixed file permissions to error log location, added git client, and added some logic for deployment keys).

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:
  • 3.1 - Add the GitHub ssh fingerprint to known-hosts file to be able to use the git "pull" command non-interactively (avoiding the " Are you sure you want to continue connecting" prompt from git/ssh when connecting to GitHub).

Tag summary

Content type

Image

Digest

Size

160.3 MB

Last updated

over 5 years ago

docker pull omaerz/craftcms:nginx-php7.4-v3.1