Compare commits
2 commits
1d52665659
...
1bb00fcda9
Author | SHA1 | Date | |
---|---|---|---|
1bb00fcda9 | |||
beb7d72a9e |
2 changed files with 19 additions and 4 deletions
18
Dockerfile
18
Dockerfile
|
@ -79,10 +79,20 @@ COPY --from=ui-build ui/dist /usr/share/nginx/html
|
|||
# Create caddy reverse proxy
|
||||
FROM docker.io/caddy AS caddy
|
||||
RUN <<EOF cat > /etc/caddy/Caddyfile
|
||||
auto_https off
|
||||
localhost:8080
|
||||
reverse_proxy /api/* web:8080
|
||||
reverse_proxy * ui:80
|
||||
{
|
||||
debug
|
||||
auto_https off
|
||||
http_port 8080
|
||||
}
|
||||
|
||||
localhost
|
||||
route /api/* {
|
||||
reverse_proxy /api/* web:8080
|
||||
}
|
||||
route {
|
||||
reverse_proxy ui:80
|
||||
}
|
||||
|
||||
EOF
|
||||
|
||||
EXPOSE 8080
|
||||
|
|
|
@ -67,6 +67,8 @@ services:
|
|||
- web
|
||||
ports:
|
||||
- 8081:8080
|
||||
volumes:
|
||||
- caddy_config:/config
|
||||
|
||||
db:
|
||||
image: docker.io/postgres:15-alpine
|
||||
|
@ -83,3 +85,6 @@ services:
|
|||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
|
||||
volumes:
|
||||
caddy_config:
|
||||
|
|
Loading…
Reference in a new issue