Add the example stack payloads
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]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
7b52e9af9e
commit
b76c76e3b0
@@ -0,0 +1,23 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user