fix(compose.yml): add sample extra_hosts for simplicity
This commit is contained in:
@@ -163,10 +163,10 @@ PUT /{page}/
|
|||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# create /my-website/ that proxies to http://localhost:8000
|
# create /my-website/ that proxies to http://host.containers.internal:8000
|
||||||
curl -X PUT \
|
curl -X PUT \
|
||||||
-H 'X-Token: <TOKEN>' \
|
-H 'X-Token: <TOKEN>' \
|
||||||
-H 'X-Proxy: http://localhost:8000' \
|
-H 'X-Proxy: http://host.containers.internal:8000' \
|
||||||
https://stapler-host/my-project/
|
https://stapler-host/my-project/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -16,6 +16,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
extra_hosts:
|
||||||
|
- "host.containers.internal:host-gateway"
|
||||||
volumes:
|
volumes:
|
||||||
- "./data:/data"
|
- "./data:/data"
|
||||||
- "./letsencrypt:/etc/letsencrypt"
|
- "./letsencrypt:/etc/letsencrypt"
|
||||||
@@ -28,4 +30,3 @@ services:
|
|||||||
- "./letsencrypt:/etc/letsencrypt"
|
- "./letsencrypt:/etc/letsencrypt"
|
||||||
- "./crontab:/etc/crontabs/root"
|
- "./crontab:/etc/crontabs/root"
|
||||||
entrypoint: /usr/sbin/crond -f
|
entrypoint: /usr/sbin/crond -f
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user