Reverse proxy quick setup and docker

1. Caddy version (caddy version):

V2

2. How I run Caddy:

I’m planning on running Caddy in an Amazon Lightsail Container (Docker).

a. System environment:

AWS Lightsail Container using the Caddy docker image

b. Command:

This is the part I want to know if I can modify. The Lightsail container service gives me very few options to modify the content of a container, however I can run a one liner startup script. When I deploy the container, would it work to use the following (from the quick setup guide) in a start.sh script? I’ll have no terminal or ssh access, so need something simple.

caddy reverse-proxy --from :2016 --to my.aws.endpoint.stuff:9000

That can probably work, or you can make your own Docker image by copying in a Caddyfile to /etc/caddy/Caddyfile.

Please also don’t forget to persist the /data volume (no idea how AWS lets you configure that, I don’t use AWS, but it must let you set up volumes… I hope).

See the docs on Docker Hub

Thank you @francislavoie

This topic was automatically closed after 30 days. New replies are no longer allowed.