Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
38 lines (29 loc) · 1.26 KB

File metadata and controls

38 lines (29 loc) · 1.26 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM phusion/baseimage:0.9.16
CMD ["/sbin/my_init"]
## Setup Countly
ENV INSIDE_DOCKER 1
COPY / /opt/countly
RUN useradd -r -M -U -d /opt/countly -s /bin/false countly && \
echo "countly ALL=(ALL) NOPASSWD: /usr/bin/sv restart countly-api countly-dashboard" >> /etc/sudoers.d/countly && \
/opt/countly/bin/countly.install.sh
## Add MongoDB data volume
VOLUME ["/var/lib/mongodb"]
# Change MongoDB folder permissions and add services folders
RUN 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
# Add services' run scripts
ADD ./bin/commands/docker/mongodb.sh /etc/service/mongodb/run
ADD ./bin/commands/docker/nginx.sh /etc/service/nginx/run
ADD ./bin/commands/docker/countly-api.sh /etc/service/countly-api/run
ADD ./bin/commands/docker/countly-dashboard.sh /etc/service/countly-dashboard/run
# Only root can change run scripts
RUN chown mongodb /etc/service/mongodb/run && \
chown root /etc/service/nginx/run && \
chown -R countly:countly /opt/countly
EXPOSE 80
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Morty Proxy This is a proxified and sanitized view of the page, visit original site.