# The smallest stack there is: one container, one network, no state. # # Deployed by ansible/playbooks/static-site.yml, which is four lines of variables # and the stack this repository points you at when you add your first service. services: static-site: container_name: static-site image: nginx:1.27-alpine restart: unless-stopped networks: - proxy-net environment: # Read by the reverse proxy's docker-gen companion, which writes the vhost # and requests the certificate. Nothing here talks to the proxy directly. VIRTUAL_HOST: www.example.com VIRTUAL_PORT: "80" LETSENCRYPT_HOST: www.example.com volumes: - ./html:/usr/share/nginx/html:ro networks: proxy-net: external: true