Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gmicroul authored Dec 4, 2024
1 parent 9bbc921 commit 7bee6bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ RUN git clone https://github.com/ugoviti/zabbix-templates.git \
&& chmod 755 $ZABBIX_SCRIPTS_DIR/* \
&& cp zabbix_agent*/*.conf $ZABBIX_AGENT_DIR/
# 暴露Zabbix Frontend端口
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 80 3306 11050
# 启动Apache2和Zabbix Agent
CMD service mysql restart && service zabbix-server restart && service apache2 restart && service zabbix-agent2 restart && service zabbix-web-service restart && tail -f /dev/null

#CMD service mysql restart && service zabbix-server restart && service apache2 restart && service zabbix-agent2 restart && service zabbix-web-service restart && tail -f /dev/null

0 comments on commit 7bee6bd

Please sign in to comment.