Containerization #480
Replies: 2 comments 2 replies
-
How can I help you set this up? |
Beta Was this translation helpful? Give feedback.
-
Hello, Thank you for your willing to contribute and suggestions. We already had the discussion before and started dockerizing the app components. The initial work is available in this branch. There is an another initiative/contribution you could look for a solution here. The Dockerized Monarc application is definitely a good thing to hove, but there is an existing vagrant based solution that is maintained and ready to use, also aligned with the current release (php8 or 8.1 support). |
Beta Was this translation helpful? Give feedback.
-
Hey,
we tried to get the project up and running locally, there were some challenges with it.
I think the experience for running (but also contributing, testing, maintaining) the project, would be a lot better if it were containerized.
Here is an example folder structure:
Here you should have one docker-compose.yml file to create the database & php
documentation: https://hub.docker.com/_/mysql
file: DockerFile
file: docker-compose.yml
here goes your .sql files that will initiate your database
from the documentation: https://hub.docker.com/_/php
you can use: php:-apache
This image contains Debian's Apache httpd in conjunction with PHP (as mod_php) and uses mpm_prefork by default.
Apache with a Dockerfile
Where src/ is the directory containing all your PHP code. Then, run the commands to build and run the Docker image:
We recommend that you add a php.ini configuration file; see the "Configuration" section for details.
same goes for your python & postgress components
python:<version>-slim
Beta Was this translation helpful? Give feedback.
All reactions