add config file for supervisord
This commit is contained in:
parent
75acb9f8a5
commit
8b2bcc6d15
|
@ -129,6 +129,7 @@ services:
|
||||||
- no_proxy
|
- no_proxy
|
||||||
volumes:
|
volumes:
|
||||||
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}${APP_CODE_CONTAINER_FLAG}
|
||||||
|
- ./php-worker/supervisord.d:/etc/supervisord.d
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "dockerhost:${DOCKER_HOST_IP}"
|
- "dockerhost:${DOCKER_HOST_IP}"
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -965,7 +965,9 @@ ARG INSTALL_SUPERVISOR=false
|
||||||
RUN if [ ${INSTALL_SUPERVISOR} = true ]; then \
|
RUN if [ ${INSTALL_SUPERVISOR} = true ]; then \
|
||||||
if [ ${INSTALL_PYTHON} = true ]; then \
|
if [ ${INSTALL_PYTHON} = true ]; then \
|
||||||
python -m pip install --upgrade supervisor && \
|
python -m pip install --upgrade supervisor && \
|
||||||
echo_supervisord_conf > /etc/supervisord.conf \
|
echo_supervisord_conf > /etc/supervisord.conf && \
|
||||||
|
sed -i 's/\;\[include\]/\[include\]/g' /etc/supervisord.conf && \
|
||||||
|
sed -i 's/\;files\s.*/files = supervisord.d\/*.conf/g' /etc/supervisord.conf \
|
||||||
;fi \
|
;fi \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue