I have tried hard-coding everything. It doesn’t seem to work. I am using Ubuntu 20.04 on EC2. Here is the complete log from start to failure.
I don’t necessarily need header_up for this project, but most of my projects need it to work. I also tried different Caddy versions with same results.
ubuntu@ip-172-31-71-121:~/go$ docker-compose up
Pulling wud (fmartinou/whats-up-docker:2.3.1)...
2.3.1: Pulling from fmartinou/whats-up-docker
cbdbe7a5bc2a: Pull complete
d22524cae38d: Pull complete
a31d6a083b03: Pull complete
38017abc27d5: Pull complete
af7f7e07b114: Pull complete
a8e4dd34f0d8: Pull complete
f1c601f9c59a: Pull complete
27afcb483a17: Pull complete
5a18b20028ac: Pull complete
Digest: sha256:e3da52de5f45e95712a16e72b1203fc24ab93d539f40e9951c7ce48082203d3c
Status: Downloaded newer image for fmartinou/whats-up-docker:2.3.1
Pulling caddyserver (caddy:2.1.1-alpine)...
2.1.1-alpine: Pulling from library/caddy
188c0c94c7c5: Pull complete
da2e2d825895: Pull complete
792a8e397063: Pull complete
e121fa2dd673: Pull complete
02cabd94ff7a: Pull complete
Digest: sha256:acf4730fd996e56a713b99d6f1892b87bf9f95af4ebc5fed53e942986ffbc2cf
Status: Downloaded newer image for caddy:2.1.1-alpine
Pulling mongo (mongo:)...
latest: Pulling from library/mongo
171857c49d0f: Pull complete
419640447d26: Pull complete
61e52f862619: Pull complete
892787ca4521: Pull complete
06e2d54757a5: Pull complete
e2f7d90822f3: Pull complete
f518d3776320: Pull complete
feb8e9d469d8: Pull complete
69705b632494: Pull complete
c7daea26376d: Pull complete
13d1f9e1fc77: Pull complete
f87e65fe7ffd: Pull complete
Digest: sha256:efc408845bc917d0b7fd97a8590e9c8d3c314f58cee651bd3030c9cf2ce9032d
Status: Downloaded newer image for mongo:latest
Pulling awszipperv2 (elgonlabs/awszipperv2:1.1.0)...
1.1.0: Pulling from elgonlabs/awszipperv2
d72e567cc804: Pull complete
0f3630e5ff08: Pull complete
b6a83d81d1f4: Pull complete
b5a2fa28fbe0: Pull complete
1249a702857a: Pull complete
a2a506e47a80: Pull complete
40a437284db2: Pull complete
Digest: sha256:571358228088917ee16045105d42deeccc8723e8de55cd2b3c228cb630e43d12
Status: Downloaded newer image for elgonlabs/awszipperv2:1.1.0
Creating caddyserver ... done
Creating wud ... done
Creating go_mongo_1 ... done
Creating go_awszipperv2_1 ... done
Attaching to wud, go_mongo_1, caddyserver, go_awszipperv2_1
caddyserver | {"level":"info","ts":1604088101.655409,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
caddyserver | run: adapting config using caddyfile: /etc/caddy/Caddyfile:16: unrecognized directive: header_up
mongo_1 | {"t":{"$date":"2020-10-30T20:01:42.449+00:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
mongo_1 | {"t":{"$date":"2020-10-30T20:01:42.498+00:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
mongo_1 | {"t":{"$date":"2020-10-30T20:01:42.499+00:00"},"s":"I", "c":"NETWORK", "id":4648601, "ctx":"main","msg":"Implicit TCP FastOpen unavailable. If TCP FastOpen is required, set tcpFastOpenServer, tcpFastOpenClient, and tcpFastOpenQueueSize."}
mongo_1 | {"t":{"$date":"2020-10-30T20:01:42.501+00:00"},"s":"I", "c":"STORAGE", "id":4615611, "ctx":"initandlisten","msg":"MongoDB starting","attr":{"pid":1,"port":27017,"dbPath":"/data/db","architecture":"64-bit","host":"56590eab74bb"}}
mongo_1 | {"t":{"$date":"2020-10-30T20:01:42.501+00:00"},"s":"I", "c":"CONTROL", "id":23403, "ctx":"initandlisten","msg":"Build Info","attr":{"buildInfo":{"version":"4.4.1","gitVersion":"ad91a93a5a31e175f5cbf8c69561e788bbc55ce1","openSSLVersion":"OpenSSL 1.1.1 11 Sep 2018","modules":[],"allocator":"tcmalloc","environment":{"distmod":"ubuntu1804","distarch":"x86_64","target_arch":"x86_64"}}}}
mongo_1 | {"t":{"$date":"2020-10-30T20:01:42.502+00:00"},"s":"I", "c":"CONTROL", "id":51765, "ctx":"initandlisten","msg":"Operating System","attr":{"os":{"name":"Ubuntu","version":"18.04"}}}
mongo_1 | {"t":{"$date":"2020-10-30T20:01:42.502+00:00"},"s":"I", "c":"CONTROL", "id":21951, "ctx":"initandlisten","msg":"Options set by command line","attr":{"options":{"net":{"bindIp":"*"}}}}
mongo_1 | {"t":{"$date":"2020-10-30T20:01:42.511+00:00"},"s":"I", "c":"STORAGE", "id":22270, "ctx":"initandlisten","msg":"Storage engine to use detected by data files","attr":{"dbpath":"/data/db","storageEngine":"wiredTiger"}}
mongo_1 | {"t":{"$date":"2020-10-30T20:01:42.512+00:00"},"s":"I", "c":"STORAGE", "id":22297, "ctx":"initandlisten","msg":"Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem","tags":["startupWarnings"]}
mongo_1 | {"t":{"$date":"2020-10-30T20:01:42.512+00:00"},"s":"I", "c":"STORAGE", "id":22315, "ctx":"initandlisten","msg":"Opening WiredTiger","attr":{"config":"create,cache_size=256M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],"}}
caddyserver exited with code 1