Skip to content

Commit

Permalink
fix(ci): debug caddy reload
Browse files Browse the repository at this point in the history
  • Loading branch information
darkweak committed Sep 4, 2023
1 parent 3345c88 commit 5092d91
Show file tree
Hide file tree
Showing 4 changed files with 264 additions and 387 deletions.
14 changes: 13 additions & 1 deletion docker-compose.yml.dev
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:
etcd:
image: quay.io/coreos/etcd
ports:
- 2379:2379
- 2379
- 2380
- 4001
environment:
Expand All @@ -52,6 +52,18 @@ services:
command: redis-server
<<: *networks

caddy:
build:
context: .
dockerfile: ./docker/caddy.Dockerfile
depends_on:
- etcd
- redis
ports:
- 4443:4443
- 2019:2019
<<: *networks

traefik:
image: traefik:latest
command: --providers.docker
Expand Down
13 changes: 13 additions & 0 deletions docker/caddy.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM caddy:2.7-builder-alpine AS app_caddy_builder

COPY . /usr/local/go/src/souin
WORKDIR /usr/local/go/src/souin/plugins/caddy

RUN xcaddy build v2.7.4 --with github.com/darkweak/souin/plugins/caddy=./ --with github.com/darkweak/souin=../..
RUN mv ./caddy /usr/bin/caddy

FROM caddy:2-alpine AS app_caddy
WORKDIR /srv/app

COPY --from=app_caddy_builder --link /usr/bin/caddy /usr/bin/caddy
COPY ./plugins/caddy/Caddyfile /etc/caddy/Caddyfile
2 changes: 1 addition & 1 deletion docs/e2e/Souin E2E.postman_collection.json

Large diffs are not rendered by default.

Loading

0 comments on commit 5092d91

Please sign in to comment.