outpost allows you to expose self-hosted web services to the Internet via popular cloud providers.
HTTP sites can be hosted with Cloudflare easily:
name: example_com
services:
outpost:
image: fossable/outpost:latest
depends_on:
- www
environment:
OUTPOST_CLOUDFLARE_INGRESS: tls://www.example.com:443
OUTPOST_CLOUDFLARE_ORIGIN: tcp://www:80
OUTPOST_CLOUDFLARE_ORIGIN_CERT: |
-----BEGIN PRIVATE KEY-----
www:
image: httpd:latestoutpost can also use an EC2 proxy to expose any TCP/UDP port. The proxy
instance communicates with the origin service via an ephemeral WireGuard tunnel.
The AWS deployment uses CloudFormation to create:
name: example_com
services:
outpost:
image: fossable/outpost:latest
cap_add:
- NET_ADMIN
depends_on:
- www
environment:
OUTPOST_AWS_INGRESS: tcp://www.example.com:80
OUTPOST_AWS_ORIGIN: tcp://www:8080
OUTPOST_AWS_REGIONS: us-east-2
OUTPOST_AWS_HOSTED_ZONE_ID: Z1234567890ABC
AWS_ACCESS_KEY_ID: <...>
AWS_SECRET_ACCESS_KEY: <...>
www:
image: httpd:latest