Fetch the repository succeeded.
Local website development that needs https
WEB_SERVER_IP
: webserver IP that is running behind Nginx
REQUEST_LOGGING
: enable response body logging for easy debugging
docker run
commanddocker run -d -e "WEB_SERVER_IP=172.25.0.4" -e "REQUEST_LOGGING=true" pdassio/nginx_reverse_proxy_ssl
version: '3.7'
volumes:
nextcloud:
db:
networks:
default:
ipam:
driver: default
config:
- subnet: "172.25.0.0/24"
services:
db:
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=nextcloud
- MYSQL_PASSWORD=nextcloud
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
app:
image: nextcloud
links:
- db
volumes:
- nextcloud:/var/www/html
networks:
default:
ipv4_address: 172.25.0.4
restart: always
ssl_proxy:
image: nginx_proxy_dev
environment:
- WEB_SERVER_IP=172.25.0.4
- REQUEST_LOGGING=true
ports:
- "443:443"
- "80:80"
Sign in for post a comment
Comments ( 0 )