Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/craftcms/image
Container images that are used as the base for Craft CMS container applications
https://github.com/craftcms/image
cms container craftcms docker
Last synced: 3 months ago
JSON representation
Container images that are used as the base for Craft CMS container applications
- Host: GitHub
- URL: https://github.com/craftcms/image
- Owner: craftcms
- Created: 2022-01-20T13:01:02.000Z (about 3 years ago)
- Default Branch: 8.3
- Last Pushed: 2024-06-07T15:52:28.000Z (8 months ago)
- Last Synced: 2024-06-07T17:14:00.862Z (8 months ago)
- Topics: cms, container, craftcms, docker
- Language: Dockerfile
- Homepage: https://craftcms.com
- Size: 123 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image
This repository hosts the code for building container images tailored for Craft CMS applications. Our aim is to offer an always up-to-date base image that developers can expand to run a web server of their choice.
> Our base image does not include an NGINX server and is exclusively configured to support running PHP-FPM. This setup enables developers to fully customize their container environments and maximize performance to meet their application needs (e.g. deploy with Caddy instead of NGINX).
## Image
This repository contains the following image types:
1. `image` - The base image for all other images that installs PHP and creates a non-root user. This image also installs supervisord and NGINX but does not configure NGINX.
## Adding a new service to supervisor
In order to add a new service to supervisor, follow these steps:
1. Create a new service file ending in `.ini`.
2. Copy the new file during a build step in the `Dockerfile` (
e.g. `COPY ./supervisor.d/craft-worker.ini /etc/supervisor.d/craft-worker.ini`).
3. Supervisor will automatically pick up the new service and start it.## Examples
This repository contains examples for extending the container image to adapt to your use case. The examples are located in the `examples` folder.
## Testing
In order to test this image locally, follow these steps:
1. Install an app (Craft), into the `examples/nginx/local` folder (the
webroot `web` is still expected and not dynamic yet). (_**Note**: If it is easier, create an `index.php`
in `./examples/nginx/local/web` with `