summaryrefslogblamecommitdiffstats
path: root/docker-compose.yml
blob: 1ee42daf0d18715f69c7a42919aed427912fbced (plain) (tree)
1
2
3
4
5
6
7
8
9





                                                                               
 
                                                  
 


                                             
 
         
                                              
              
                                   
                     
            
                                                  

                             

               



                               
# 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)
#
#   - EXPOSE the relevant port in your Dockerfile.
#
#   - Join the "nginx-proxy-network" network.

version: "3.7"

services:
  # https://github.com/nginx-proxy/nginx-proxy
  nginx-proxy:
    image: "nginxproxy/nginx-proxy"
    restart: "always"
    volumes:
      - "/var/run/docker.sock:/tmp/docker.sock:ro"
    networks:
      - "nginx-proxy-network"
    ports:
      - "80:80"

networks:
  nginx-proxy-network:
    name: "nginx-proxy-network"