Compare commits

..

2 commits

Author SHA1 Message Date
1bb00fcda9 misc: Add config volume for caddy
All checks were successful
ci/woodpecker/manual/test/1 Pipeline was successful
ci/woodpecker/manual/test/2 Pipeline was successful
ci/woodpecker/manual/test/3 Pipeline was successful
ci/woodpecker/manual/test/4 Pipeline was successful
ci/woodpecker/manual/build/1 Pipeline was successful
ci/woodpecker/manual/build/2 Pipeline was successful
ci/woodpecker/manual/build/3 Pipeline was successful
ci/woodpecker/manual/build/4 Pipeline was successful
ci/woodpecker/manual/build/5 Pipeline was successful
ci/woodpecker/manual/build/6 Pipeline was successful
ci/woodpecker/manual/build/7 Pipeline was successful
ci/woodpecker/manual/build/8 Pipeline was successful
Makes the container runnable.
2023-12-07 16:37:28 +01:00
beb7d72a9e build: Extend caddy config 2023-12-07 16:36:27 +01:00
2 changed files with 19 additions and 4 deletions

View file

@ -79,10 +79,20 @@ COPY --from=ui-build ui/dist /usr/share/nginx/html
# Create caddy reverse proxy # Create caddy reverse proxy
FROM docker.io/caddy AS caddy FROM docker.io/caddy AS caddy
RUN <<EOF cat > /etc/caddy/Caddyfile RUN <<EOF cat > /etc/caddy/Caddyfile
{
debug
auto_https off auto_https off
localhost:8080 http_port 8080
}
localhost
route /api/* {
reverse_proxy /api/* web:8080 reverse_proxy /api/* web:8080
reverse_proxy * ui:80 }
route {
reverse_proxy ui:80
}
EOF EOF
EXPOSE 8080 EXPOSE 8080

View file

@ -67,6 +67,8 @@ services:
- web - web
ports: ports:
- 8081:8080 - 8081:8080
volumes:
- caddy_config:/config
db: db:
image: docker.io/postgres:15-alpine image: docker.io/postgres:15-alpine
@ -83,3 +85,6 @@ services:
timeout: 5s timeout: 5s
retries: 5 retries: 5
start_period: 60s start_period: 60s
volumes:
caddy_config: