fix(compose.yml): add sample extra_hosts for simplicity
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user