name: apps services: nginx: image: nginx:stable container_name: nginx restart: unless-stopped volumes: - ./nginx/data:/data - ./nginx/nginx.conf:/etc/nginx/nginx.conf - ./nginx/conf.d:/etc/nginx/conf.d - ./nginx/logs:/var/log/nginx - ./certbot:/certbot - /etc/localtime:/etc/localtime:ro - /etc/timezone:/etc/timezone:ro network_mode: host # ports: # - 80:80 # - 443:443