Compare commits
No commits in common. "1bb00fcda96ba52d9b6768e84ab18da7acae77ac" and "1d52665659573407f6d6dbdecf3b7a1d08ed36cf" have entirely different histories.
1bb00fcda9
...
1d52665659
2 changed files with 4 additions and 19 deletions
18
Dockerfile
18
Dockerfile
|
@ -79,20 +79,10 @@ 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
|
||||||
{
|
auto_https off
|
||||||
debug
|
localhost:8080
|
||||||
auto_https off
|
reverse_proxy /api/* web:8080
|
||||||
http_port 8080
|
reverse_proxy * ui:80
|
||||||
}
|
|
||||||
|
|
||||||
localhost
|
|
||||||
route /api/* {
|
|
||||||
reverse_proxy /api/* web:8080
|
|
||||||
}
|
|
||||||
route {
|
|
||||||
reverse_proxy ui:80
|
|
||||||
}
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
|
@ -67,8 +67,6 @@ 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
|
||||||
|
@ -85,6 +83,3 @@ services:
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 60s
|
start_period: 60s
|
||||||
|
|
||||||
volumes:
|
|
||||||
caddy_config:
|
|
||||||
|
|
Loading…
Reference in a new issue