The files copied to /srv/stacks/<stack>/ verbatim: compose files, vhosts, Prometheus configuration, the webapp image source. Payloads are data, never templated and never linted as Ansible content. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
24 lines
753 B
YAML
24 lines
753 B
YAML
# 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
|