docker-scripts/linux/nginx/latest
2021-04-02 00:55:55 +03:00
..
pre balancer -> nginx 2021-04-01 13:31:53 +03:00
Dockerfile nginx 1.19.9 2021-04-02 00:55:55 +03:00
Makefile balancer -> nginx 2021-04-01 13:31:53 +03:00
README.md balancer -> nginx 2021-04-01 13:31:53 +03:00

Compose example

version: '3.7'
services:
  balancer:
    image: epicmorg/balancer
    restart: unless-stopped
    ports:
      - "0.0.0.0:80:80"
      - "0.0.0.0:443:443"
    volumes:
      - /etc/localtime:/etc/localtime
      - /etc/timezone:/etc/timezone
      - /etc/letsencrypt:/etc/letsencrypt
      - nginx:/etc/nginx
      - nginx-usr:/usr/share/nginx/html
      - /var/lib/nginx
#    extra_hosts:
#      - "example.com:192.168.0.11"
    depends_on:
      - websites
    tmpfs:
      - /tmp
volumes:
  nginx:
    external: true
  nginx-usr:
    external: true