Skip to content

Commit

Permalink
docker: Added letsencrypt-proxy to handle HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
xescugc committed Jan 5, 2024
1 parent 49f7b29 commit 1024a20
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docker/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,28 @@ version: "3"
services:
nginx-proxy:
image: nginxproxy/nginx-proxy:0.9.1
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- letsencrypt-certs:/etc/nginx/certs
- letsencrypt-vhost-d:/etc/nginx/vhost.d
- letsencrypt-html:/usr/share/nginx/html
networks:
maze-wars:

letsencrypt-proxy:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- letsencrypt-certs:/etc/nginx/certs
- letsencrypt-vhost-d:/etc/nginx/vhost.d
- letsencrypt-html:/usr/share/nginx/html
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
networks:
maze-wars:

Expand All @@ -18,4 +36,11 @@ services:
environment:
- PORT=3000
- VIRTUAL_HOST=maze-wars.com,www.maze-wars.com
- LETSENCRYPT_HOST=maze-wars.com,www.maze-wars.com
- [email protected]
restart: on-failure

volumes:
letsencrypt-certs:
letsencrypt-vhost-d:
letsencrypt-html:

0 comments on commit 1024a20

Please sign in to comment.