mirror of
https://github.com/MikroWizard/docker-compose-deployment.git
synced 2025-07-10 02:44:25 +02:00
feat: Initial commit 🎉
Set up the foundational structure for the MikroWizard deployment repository, including: - Docker Compose configuration for MikroFront, MikroMan, PostgreSQL, and Redis Stack. - `prepare.sh` script for host environment preparation. - Database initialization script (`init-db.sql`). - `.env` template for centralized configuration. This commit marks the beginning of a streamlined deployment process for MikroWizard!
This commit is contained in:
commit
a8f029ee38
80 changed files with 3429 additions and 0 deletions
27
mikrofront/Dockerfile
Normal file
27
mikrofront/Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
FROM nginx:latest
|
||||
|
||||
RUN apt-get update && apt-get -y install cron
|
||||
RUN touch /var/log/cron.log
|
||||
COPY reqs.txt /reqs.txt
|
||||
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
build-essential \
|
||||
gcc \
|
||||
' \
|
||||
&& deps=' \
|
||||
htop \
|
||||
' \
|
||||
&& apt-get install -y python3 python3-dev pip $buildDeps $deps --no-install-recommends && pip install -r /reqs.txt --break-system-packages
|
||||
COPY front-update.py /
|
||||
COPY mwcrontab /etc/cron.d/mwcrontab
|
||||
RUN chmod 0644 /etc/cron.d/mwcrontab
|
||||
|
||||
RUN crontab /etc/cron.d/mwcrontab
|
||||
|
||||
COPY dist/mikrofront /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
CMD cron;nginx -g "daemon off;"
|
Loading…
Add table
Add a link
Reference in a new issue