diff --git a/README.md b/README.md index 075a40e..72fd4c7 100644 --- a/README.md +++ b/README.md @@ -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: ' \ - -H 'X-Proxy: http://localhost:8000' \ + -H 'X-Proxy: http://host.containers.internal:8000' \ https://stapler-host/my-project/ ``` diff --git a/compose.example.yml b/compose.example.yml index 6185ee3..5c7e393 100644 --- a/compose.example.yml +++ b/compose.example.yml @@ -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 -