Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/enhavo/enhavo-docker

Enhavo docker images
https://github.com/enhavo/enhavo-docker

capistrano docker enhavo symfony

Last synced: 11 days ago
JSON representation

Enhavo docker images

Awesome Lists containing this project

README

        

![alt text](enhavo.svg "enhavo")



The enhavo CMS is a open source PHP project on top of the fullstack Symfony framework and uses awesome Sylius components to serve a very flexible software, that can handle most of complex data structure with a clean and usability interface.

enhavo-app
----------

The goal of ``enhavo/enhavo-app`` image ist to easy deploy enhavo applications with it.
So we provide some images that fit to your enhavo project. At least you need enhavo version `>=0.7` to run
this images without additional config.

Read more [documentation](./images/enhavo-app/usage.md) for usage

Available versions:

- `7.4-fpm-latest` `7.4-fpm-0.6`
- `7.4-apache-latest` `7.4-apache-0.6`
- `7.4-nginx-latest` `7.4-nginx-0.6`
- `8.0-fpm-latest` `8.0-fpm-0.6`
- `8.0-apache-latest` `8.0-apache-0.6`
- `8.0-nginx-latest` `8.0-nginx-0.6`
- `8.1-fpm-latest` `8.1-fpm-0.6`
- `8.1-apache-latest` `8.1-apache-0.6`
- `8.1-nginx-latest` `8.1-nginx-0.6`
- `8.2-fpm-latest` `8.2-fpm-0.6`
- `8.2-apache-latest` `8.2-apache-0.6`
- `8.2-nginx-latest` `8.2-nginx-0.6`
- `8.3-fpm-latest` `8.3-fpm-0.6`
- `8.3-apache-latest` `8.3-apache-0.6`
- `8.3-nginx-latest` `8.3-nginx-0.6`

Usage
-----

Run the image with docker run command

```
$ docker run -dit -p 8000:80 --name enhavo-app enhavo/enhavo-app:7.2-apache-latest
```

On port 8000 you should see the php info page.

The document root is under `/var/www/current/public`

To run your app inside the container you need to mount your project directory

`-v /var/www/current:/path/to/project/dir`

If you use capistrano you can mount your deploy directory

`-v /var/www:/path/to/capistrano/deploy`

Also SSH for deployment is supported by the image, just use the port option to expose the port

`-p 2200:22`

Custom configurations
---------------------

If the docker image don't fit to your needs, than just extend it.
Create your custom `Dockerfile`. You can use apt-get to install
missing libraries.

```
# Dockerfile
FROM enhavo/enhavo-app:7.2-apache-latest

COPY /path/to/your/php.ini /etc/php/7.2/fpm/php.ini
RUN apt-get -y install php7.2-ldap
```

Now just build your image and store it under your custom name

```
$ docker build -t your_company/custom_name:latest .
```

And run your custom image

```
$ docker run -dit -p 8000:80 --name enhavo-app your_company/custom_name:latest
```

**Start with supervisor**

```
$ docker run -dit -p 8000:80 --env SUPERVISOR=true --name enhavo-app enhavo/enhavo-app:latest
```

Add your supervisor configs to ``/etc/supervisor/conf.d``

Contribution
------------

Feel free to contribute just add a star this project or open a task or pull request.

MIT License
-----------

This software is free to use with MIT License