ckdanny
5/20/2018 - 3:57 PM

Nginx Docker Config

Nginx Docker Config

version: '3'
services:
  nginx:
    container_name: nginx
    image: nginx:latest
    restart: always
    volumes:
      - ./www:/usr/share/nginx/html
      - ./conf.d:/etc/nginx/conf.d
      - ./log/nginx:/var/log/nginx
      - ./certs:/etc/letsencrypt
      - ./certs-data:/data/letsencrypt
    environment:
      TZ: Asia/Hong_Kong
    ports:
      - 80:80
      - 443:443