4 Star 10 Fork 2

Gitee 极速下载/countly-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Countly/countly-server
克隆/下载
Dockerfile 3.02 KB
一键复制 编辑 原始数据 按行查看 历史
Kaan Kölköy 提交于 2024-01-15 19:35 . All required name changes
FROM phusion/baseimage:focal-1.2.0
ARG COUNTLY_PLUGINS=mobile,web,desktop,plugins,density,locale,browser,sources,views,logger,systemlogs,populator,reports,crashes,push,star-rating,slipping-away-users,compare,server-stats,dbviewer,times-of-day,compliance-hub,alerts,onboarding,consolidate,remote-config,hooks,dashboards,sdk,data-manager,guides
# Countly Enterprise:
#ARG COUNTLY_PLUGINS=mobile,web,desktop,plugins,density,locale,browser,sources,views,license,drill,funnels,retention_segments,flows,cohorts,surveys,remote-config,ab-testing,formulas,activity-map,concurrent_users,revenue,logger,systemlogs,populator,reports,crashes,push,geo,block,users,star-rating,slipping-away-users,compare,server-stats,dbviewer,crash_symbolication,crashes-jira,groups,white-labeling,alerts,times-of-day,compliance-hub,onboarding,active_users,performance-monitoring,config-transfer,consolidate,data-manager,hooks,dashboards,heatmaps,sdk,guides
ARG COUNTLY_CONFIG_API_MONGODB_HOST=localhost
ARG COUNTLY_CONFIG_FRONTEND_MONGODB_HOST=localhost
ARG DEBIAN_FRONTEND=noninteractive
ARG TZ=Etc/UTC
CMD ["/sbin/my_init"]
## Setup Countly
ENV COUNTLY_CONTAINER="both" \
COUNTLY_DEFAULT_PLUGINS="${COUNTLY_PLUGINS}" \
COUNTLY_CONFIG_API_API_HOST="0.0.0.0" \
COUNTLY_CONFIG_FRONTEND_WEB_HOST="0.0.0.0" \
NODE_OPTIONS="--max-old-space-size=2048" \
INSIDE_DOCKER=1
EXPOSE 80
USER root
## Add MongoDB data volume
VOLUME ["/var/lib/mongodb"]
COPY / /opt/countly
RUN apt-get update && apt-get install -y sudo && \
/opt/countly/bin/countly.install.sh && \
rm /usr/bin/systemctl && \
chown -R mongodb:mongodb /var/lib/mongodb && \
\
mkdir /etc/service/mongodb && \
mkdir /etc/service/nginx && \
mkdir /etc/service/countly-api && \
mkdir /etc/service/countly-dashboard && \
echo "" >> /etc/nginx/nginx.conf && \
echo "daemon off;" >> /etc/nginx/nginx.conf && \
\
cp /opt/countly/bin/commands/docker/mongodb.sh /etc/service/mongodb/run && \
cp /opt/countly/bin/commands/docker/nginx.sh /etc/service/nginx/run && \
cp /opt/countly/bin/commands/docker/countly-api.sh /etc/service/countly-api/run && \
cp /opt/countly/bin/commands/docker/countly-dashboard.sh /etc/service/countly-dashboard/run && \
\
chown mongodb /etc/service/mongodb/run && \
chown root /etc/service/nginx/run && \
chown -R countly:countly /opt/countly && \
\
apt-get autoremove -y && \
apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
rm -rf /tmp/* /tmp/.??* /var/tmp/* /var/tmp/.??* /root/.npm && \
mkdir -p /opt/countly/.npm && chown -R 1001:0 /opt/countly/.npm
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/mirrors/countly-server.git
git@gitee.com:mirrors/countly-server.git
mirrors
countly-server
countly-server
master

搜索帮助