@@ -0,0 +1,24 @@
+# Static site
+
+## Configure
+```
+export CHATONS_STATIC_SITE=changeme
+## Deploy
+docker-compose up -d
+You just need to copy your static site content to:
+/srv/chatons/static/changeme
+Then ensure root is the owner of the files:
+chown -R root:root /srv/chatons/static/changeme
+Now you have a static site at URL `changeme.localhost`
@@ -0,0 +1,19 @@
+version: '3'
+networks:
+ web:
+ external: true
+services:
+ image: nginx:alpine
+ restart: unless-stopped
+ volumes:
+ - ${CHATONS_ROOT_DIR:-/srv/chatons}/static/${CHATONS_STATIC_SITE:-static}:/usr/share/nginx/html:rw
+ labels:
+ traefik.enable: "true"
+ traefik.frontend.rule: "Host: ${CHATONS_STATIC_SITE:-static}.${CHATONS_DOMAIN:-localhost}, www.${CHATONS_STATIC_SITE:-static}.${CHATONS_DOMAIN:-localhost}"
+ networks:
+ - web
+ - default