Commit graph

14 commits

Author SHA1 Message Date
f2e709590b
Add basic nextcloud deployment
Uses php-fpm image and is served through a simple caddy server.
Automatically deploys by default and can be automatically deployed with
smtp e-mail sending and s3 primary object storage optionally if desired.

Utilizes some necessary hackery for container ordering and startup so
startup is relatively slow (takes around 2-5 minutes at least) but once
running should be stable and uninterrupted.

Implements health-checks for all involved containers.

Switch apache for php-fpm image
2021-11-20 14:23:57 +01:00
80185e39dd
Simplify caddy config
Move double conditional checking of email provision and staging
environment into single check.
2021-10-21 14:27:34 +02:00
7eeeec0489
Move caddy API access to internal variables
Moved the ability to switch off caddy's api access to variables not
intended to be overwritten. It still can, but it is much more difficult.
Since every docker deployment relies on caddy's api to be accessible it
seems weird to present an easily reachable option to turn it off
globally.
2021-10-21 14:25:54 +02:00
da1e696292
Fix https redirect setting
Fixed the reverse setting for https redirection. It would redirect when
the option was toggled off and vice versa.
2021-10-20 17:39:24 +02:00
f4864c5da3
Fix caddy container info delay
Give more time to docker to correctly bring up caddy in the swarm.
Extended delay to retry to 10 seconds and gave it more retries as well,
so that roughly a minute will be gone before the play gives up.
2021-10-20 17:33:35 +02:00
f7389dc8c3
Add caddy README 2021-08-01 09:38:41 +02:00
37bd1ed2cd
Fix caddy role tasks changed recognition 2021-07-31 17:56:54 +02:00
79c704c1f9
Switch caddy to use json configuration 2021-07-31 17:26:06 +02:00
bebdf72b19
Ease caddy stack variable setup 2021-07-30 23:25:47 +02:00
95832941c0
Ensure stacks can inject their upstream to caddy
Created bind volume for caddy which takes the json fragments which will
later be injected through the caddy api to dynamically set their
individual reverse proxy addresses.

This is not entirely necessary if the injection should be done as a
variable instead, but makes it easier to change routes and especially
more complicated ones (I'm thinking of gitea with ssh access e.g.).
2021-07-30 11:10:05 +02:00
351e1202b2
Fix Caddyfile template for undefined email 2021-07-29 17:04:33 +02:00
4b947a3112
Add api endpoint toggle variable to caddy role 2021-07-29 16:47:13 +02:00
6de8f0fb50
Add testing inventory and group variables
Added fully test-ready inventory and groups using vagrant and able to
run repeatedly as necessary.
2021-07-29 15:11:28 +02:00
9f188c2674
Add basic caddy swarm role
Added caddy as swarm container. Uses templated Caddyfile which can be
set up for testing purposes for now.
Depends on docker and docker-swarm, and will keep its stuff where
docker-swarm sets itself up.
2021-07-29 14:39:43 +02:00