summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml34
1 files changed, 11 insertions, 23 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index b408424..1ee42da 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,39 +1,27 @@
-version: "3.7"
-
-# Services requiring reverse proxy functionality should join the
-# 'nginx-proxy-network' network and define the environment variable
-# 'VIRTUAL_HOST' to the DNS name they use.
+# Provides basic HTTP-only reverse proxy service. To create a Docker container
+# that uses this service:
+#
+# - Define environment variables:
+# - VIRTUAL_HOST=<domain name>
+# - VIRTUAL_PORT=<port number> (only necessary if not 80)
#
-# This container works with or without the acme-companion service.
+# - EXPOSE the relevant port in your Dockerfile.
#
-# See more info here: https://github.com/nginx-proxy/nginx-proxy
+# - Join the "nginx-proxy-network" network.
+
+version: "3.7"
services:
+ # https://github.com/nginx-proxy/nginx-proxy
nginx-proxy:
- container_name: "nginx-proxy"
image: "nginxproxy/nginx-proxy"
restart: "always"
volumes:
- - "certs:/etc/nginx/certs"
- - "dhparam:/etc/nginx/dhparam"
- - "vhost:/etc/nginx/vhost.d"
- - "html:/usr/share/nginx/html"
- "/var/run/docker.sock:/tmp/docker.sock:ro"
networks:
- "nginx-proxy-network"
ports:
- "80:80"
- - "443:443"
-
-volumes:
- certs:
- name: "certs"
- dhparam:
- name: "dhparam"
- vhost:
- name: "vhost"
- html:
- name: "html"
networks:
nginx-proxy-network: