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