### 1. Caddy version (`caddy version`):
`v2.4.5 h1:P1mRs6V2cMcagSPn+NWpD+OEYUYLIf6ecOa48cFGeUg=`
### 2. How I run Caddy:
`Public vps server`
#### a. System environment:
`ubuntu 20.04`
Paste command here.
caddy reverse-proxy --from netwerk.tech --to localhost:10000
#### c. Service/unit/compose file:
`Docker > works if i run caddy with caddy reverse-proxy --from netwerk.tech --to localhost:10000`
d. My complete Caddyfile or JSON config:
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
netwerk.tech:80 {
# Set this path to your site's directory.
root * /usr/share/caddy
# Enable the static file server.
file_server
# Another common task is to set up a reverse proxy:
reverse_proxy localhost:10000
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
{"apps":{"http":{"servers":{"srv0":{"listen":[":80"],"routes":[{"handle":[{"handler":"subroute","routes":[{"handle":[{"handler":"vars","root":"/usr/share/caddy"},{"handler":"reverse_proxy","upstreams":[{"dial":"localhost:10000"}]},{"handler":"file_server","hide":["./Caddyfi>
3. The problem I’m having:
If i run caddy with caddy start reverse proxy does not seems to work
when i stop caddy and run the lower command, my docker container works…
caddy reverse-proxy --from netwerk.tech --to localhost:10000
### 4. Error messages and/or full log output:
sep 15 16:25:13 h2949204.stratoserver.net caddy[110940]: LOGNAME=caddy
sep 15 16:25:13 h2949204.stratoserver.net caddy[110940]: USER=caddy
sep 15 16:25:13 h2949204.stratoserver.net caddy[110940]: INVOCATION_ID=f1d037ce203d4bab8be76f8031c90a20
sep 15 16:25:13 h2949204.stratoserver.net caddy[110940]: JOURNAL_STREAM=8:4294461196
sep 15 16:25:13 h2949204.stratoserver.net caddy[110940]: {"level":"info","ts":1631715913.4884837,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":""}
sep 15 16:25:13 h2949204.stratoserver.net caddy[110940]: {"level":"warn","ts":1631715913.4894576,"msg":"input is not formatted with 'caddy fmt'","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":1}
sep 15 16:25:13 h2949204.stratoserver.net caddy[110940]: run: loading initial config: loading new config: starting caddy administration endpoint: listen tcp 127.0.0.1:2019: bind: address already in use
sep 15 16:25:13 h2949204.stratoserver.net systemd[1]: Started Caddy.
sep 15 16:25:13 h2949204.stratoserver.net systemd[1]: caddy.service: Main process exited, code=exited, status=1/FAILURE
sep 15 16:25:13 h2949204.stratoserver.net systemd[1]: caddy.service: Failed with result 'exit-code'.
5. What I already tried:
unbind port 2019
full reboot