fix(compose.yml): add sample extra_hosts for simplicity

This commit is contained in:
2026-04-21 15:03:16 +02:00
parent 5dd4ae4f3d
commit 8f0e063ab7
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -163,10 +163,10 @@ PUT /{page}/
```
```bash
# create /my-website/ that proxies to http://localhost:8000
# create /my-website/ that proxies to http://host.containers.internal:8000
curl -X PUT \
-H 'X-Token: <TOKEN>' \
-H 'X-Proxy: http://localhost:8000' \
-H 'X-Proxy: http://host.containers.internal:8000' \
https://stapler-host/my-project/
```
+2 -1
View File
@@ -16,6 +16,8 @@ services:
ports:
- "80:80"
- "443:443"
extra_hosts:
- "host.containers.internal:host-gateway"
volumes:
- "./data:/data"
- "./letsencrypt:/etc/letsencrypt"
@@ -28,4 +30,3 @@ services:
- "./letsencrypt:/etc/letsencrypt"
- "./crontab:/etc/crontabs/root"
entrypoint: /usr/sbin/crond -f