services: openresty: image: openresty/openresty:alpine container_name: openresty-gateway network_mode: host restart: unless-stopped volumes: # Main config - ./conf/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro # HTTP virtual hosts - ./conf/conf.d:/usr/local/openresty/nginx/conf/conf.d:ro # TCP/stream virtual hosts - ./conf/stream.d:/usr/local/openresty/nginx/conf/stream.d:ro # Static sites and ACME HTTP-01 challenges - ./www:/var/www # Let's Encrypt certificates - ./certs:/etc/letsencrypt # OpenResty logs - ./logs:/usr/local/openresty/nginx/logs # Tool container used by scripts and manual certbot commands. certbot: image: certbot/certbot container_name: certbot volumes: - ./www:/var/www - ./certs:/etc/letsencrypt