- reverse-proxy : https://github.com/nginx-proxy/nginx-proxy/
- custom nginx-proxy container with increased request body size
- with a dedicated docker network
proxy
.env
file
# NGINX + LETSENCRYPT
APP_DOMAIN=SERVICE.CHANGE_ME.COM
# APP
-
create a
./volumes/CHANGE_ME/.gitkeep
file for each local volume required -
docker-compose.yml
file
version: '3.5'
services:
unique_service_name:
container_name: unique_service_name
hostname: unique_service_name
restart: on-failure:5
expose:
- 80
environment:
# general
- TZ=Europe/Paris
# nginx + letsencrypt
- VIRTUAL_PORT=80 # same as expose
- VIRTUAL_HOST=${APP_DOMAIN}
- LETSENCRYPT_HOST=${APP_DOMAIN}
# app
volumes:
- ./volumes/CHANGE_ME:/CHANGE_ME
networks:
- proxy
- unique_network_name # if necessary
networks:
proxy:
external: true
unique_network_name:
name: unique_network_name
if your ISP is Orange, check that your livebox has the IP loopback option (https://assistance.orange.fr/livebox-modem/toutes-les-livebox-et-modems/installer-et-utiliser/piloter-et-parametrer-votre-materiel/le-parametrage-avance-reseau-nat-pat-ip/dns/livebox-4-le-loopback_243342-785338 archive.org)
required : livebox version >= 4
if your ISP gives you a dynamic IP address, with a domain at OVH you can use ddclient
to update your DNS.