Skip to content

Commit 0ad9932

Browse files
committed
differneciate between nginx including autoreload on certificate update and default with no autoreload
1 parent 98fd764 commit 0ad9932

File tree

3 files changed

+25
-18
lines changed

3 files changed

+25
-18
lines changed

compose_configs/sites/svip-api.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ version: "3.5"
22

33
services:
44
nginx:
5+
build:
6+
context: ./service_config/nginx
7+
dockerfile: Dockerfile.certbot
58
ports:
69
- "443:443"
710
- "80:80"

service_config/nginx/Dockerfile

+2-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,4 @@
1-
FROM nginx:mainline
2-
3-
# Copy over the scripts
4-
COPY reloader.sh /
5-
COPY entrypoint.sh /
6-
7-
# Make the scripts executable
8-
RUN chmod +x /reloader.sh /entrypoint.sh
1+
FROM nginx:mainline-alpine
92

103
# Copy over the nginx config
11-
COPY nginx.conf /etc/nginx/nginx.conf
12-
13-
# Install the requirements
14-
RUN apt-get update && apt-get install -y inotify-tools
15-
16-
# Clean up the apt cache
17-
RUN apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/{apt,dpkg,cache,log}/
18-
19-
ENTRYPOINT [ "/entrypoint.sh" ]
20-
CMD ["nginx", "-g", "daemon off;"]
4+
COPY nginx.conf /etc/nginx/nginx.conf
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM nginx:mainline
2+
3+
# Copy over the scripts
4+
COPY reloader.sh /
5+
COPY entrypoint.sh /
6+
7+
# Make the scripts executable
8+
RUN chmod +x /reloader.sh /entrypoint.sh
9+
10+
# Copy over the nginx config
11+
COPY nginx.conf /etc/nginx/nginx.conf
12+
13+
# Install the requirements
14+
RUN apt-get update && apt-get install -y inotify-tools
15+
16+
# Clean up the apt cache
17+
RUN apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/{apt,dpkg,cache,log}/
18+
19+
ENTRYPOINT [ "/entrypoint.sh" ]
20+
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)