FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
countly-server/Dockerfile at master · JavaScriptIOT/countly-server · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
JavaScriptIOT
/
countly-server
Public
forked from
Countly/countly-server
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
countly-server
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (29 loc) · 1.26 KB
Breadcrumbs
countly-server
/
Dockerfile
Copy path
File metadata and controls
38 lines (29 loc) · 1.26 KB
Raw
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/*
Back
|
FazBrowse Home
|
New Git URL