first commit
This commit is contained in:
9
.drone.yml
Normal file
9
.drone.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build monica docker image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
repo: registry.sikorski.cloud/monica
|
||||||
|
tags: latest
|
||||||
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
FROM monica:apache
|
||||||
|
|
||||||
|
# Use the default production configuration
|
||||||
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||||
|
|
||||||
|
# supervisord dependencies
|
||||||
|
RUN set -ex; \
|
||||||
|
\
|
||||||
|
apt-get update; \
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
supervisor \
|
||||||
|
; \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY supervisord.conf /etc/supervisord.conf
|
||||||
|
|
||||||
|
CMD ["supervisord", "-c", "/etc/supervisord.conf"]
|
||||||
30
supervisord.conf
Normal file
30
supervisord.conf
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
[supervisord]
|
||||||
|
nodaemon=true
|
||||||
|
user=root
|
||||||
|
|
||||||
|
[program:cron]
|
||||||
|
command=cron.sh
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
|
||||||
|
[program:queue]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
command=queue.sh
|
||||||
|
numprocs=1
|
||||||
|
stdout_logfile=/proc/1/fd/1
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/proc/1/fd/2
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
startretries=0
|
||||||
|
|
||||||
|
[program:httpd]
|
||||||
|
process_name=%(program_name)s_%(process_num)02d
|
||||||
|
command=entrypoint.sh apache2-foreground
|
||||||
|
stdout_logfile=/proc/1/fd/1
|
||||||
|
stdout_logfile_maxbytes=0
|
||||||
|
stderr_logfile=/proc/1/fd/2
|
||||||
|
stderr_logfile_maxbytes=0
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
Reference in New Issue
Block a user