Skip to content

Commit

Permalink
Use upstream NGINX image
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyTran732 authored Sep 6, 2022
1 parent 8999930 commit eef4361
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 51 deletions.
13 changes: 6 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ version: '3'

services:
nginx-terminate:
build: ./nginx-terminate/
image: nginx:alpine
restart: unless-stopped
volumes:
- ./data/nginx-terminate:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
- ./data/nginx-terminate/nginx.conf:/etc/nginx/nginx.conf:Z
- ./data/certbot/conf:/etc/letsencrypt:Z
- ./data/certbot/www:/var/www/certbot:Z
ports:
- "443:443"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/nginx/sbin/nginx -s reload; done & /opt/nginx/sbin/nginx -c /etc/nginx/conf.d/nginx.conf -g \"daemon off;\"'"
nginx-relay:
build: ./nginx-relay/
image: nginx:alpine
restart: unless-stopped
volumes:
- ./data/nginx-relay:/etc/nginx/conf.d
- ./data/nginx-relay/nginx.conf:/etc/nginx/nginx.conf:Z
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/nginx/sbin/nginx -s reload; done & /opt/nginx/sbin/nginx -c /etc/nginx/conf.d/nginx.conf -g \"daemon off;\"'"
certbot:
image: certbot/certbot
Expand Down
22 changes: 0 additions & 22 deletions nginx-relay/Dockerfile

This file was deleted.

22 changes: 0 additions & 22 deletions nginx-terminate/Dockerfile

This file was deleted.

0 comments on commit eef4361

Please sign in to comment.