Test
This commit is contained in:
parent
9e9e3833cc
commit
5594c484d6
@ -1,12 +1,7 @@
|
||||
FROM node:23.6-bullseye-slim
|
||||
|
||||
RUN apt-get update && apt-get install curl -y
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /opt/prod/app
|
||||
COPY . .
|
||||
RUN tar -zxf bore.tar.gz
|
||||
|
||||
EXPOSE 6022
|
||||
EXPOSE 7835
|
||||
EXPOSE 6080
|
||||
CMD [ "./bore", "server" ]
|
||||
15
compose.yaml
15
compose.yaml
@ -8,18 +8,15 @@ services:
|
||||
- 'BORE_SECRET=${BORE_SECRET}'
|
||||
ports:
|
||||
- '6022:6022'
|
||||
- '7835:7835'
|
||||
healthcheck:
|
||||
test: ["CMD", "/bin/sh", "-c", "exit 0"]
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.gzip.compress=true
|
||||
- traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
|
||||
- traefik.http.routers.http-0-d0ws408wc4cc0o4ksws80kw0-bore-tunnel.entryPoints=http
|
||||
- traefik.http.routers.http-0-d0ws408wc4cc0o4ksws80kw0-bore-tunnel.middlewares=gzip
|
||||
- 'traefik.http.routers.http-0-d0ws408wc4cc0o4ksws80kw0-bore-tunnel.rule=HostRegexp(`^(?:.+-)?ikea\.jdf2\.org$`) && PathPrefix(`/`)'
|
||||
- traefik.http.routers.http-0-d0ws408wc4cc0o4ksws80kw0-bore-tunnel.service=http-0-d0ws408wc4cc0o4ksws80kw0-bore-tunnel
|
||||
- traefik.http.services.http-0-d0ws408wc4cc0o4ksws80kw0-bore-tunnel.loadbalancer.server.port=6080
|
||||
- traefik.tcp.routers.tcpecho-le.entrypoints=bore-tcp
|
||||
- traefik.tcp.routers.tcpecho-le.rule=HostSNI(`bore-pretzel.jdf2.org`)
|
||||
- traefik.tcp.routers.tcpecho-le.tls.certresolver=letsencrypt
|
||||
- traefik.tcp.services.tcpecho-le.loadbalancer.server.port=7835
|
||||
- traefik.http.routers.http-bore-ikea.entryPoints=http
|
||||
- traefik.http.routers.http-bore-ikea.middlewares=gzip
|
||||
- 'traefik.http.routers.http-bore-ikea.rule=HostRegexp(`^(?:.+-)?ikea\.jdf2\.org$`) && PathPrefix(`/`)'
|
||||
- traefik.http.routers.http-bore-ikea.service=http-bore-ikea
|
||||
- traefik.http.services.http-bore-ikea.loadbalancer.server.port=6080
|
||||
Loading…
x
Reference in New Issue
Block a user