pref: add web submodule

This commit is contained in:
thehrz 2024-08-17 08:41:02 +08:00
parent b069493363
commit 1aae9a9eca
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
5 changed files with 43 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "web"]
path = web
url = https://git.thehrz.net/thehrz/ipv6-test.git

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM golang:1.22 as build-stage
WORKDIR /app
ENV GOPROXY https://goproxy.cn,direct
COPY . .
RUN go build -o app .
CMD ["/app/app"]

30
docker-compose.yml Normal file
View File

@ -0,0 +1,30 @@
version: "3.8"
networks:
traefik:
name: traefik
external: true
ipv6-test:
name: ipv6-test
services:
frontend:
build: ./web
container_name: ipv6-test-frontend
restart: always
labels:
- traefik.enable=true
- traefik.http.routers.ipv6-test.rule=Host(`ipv6-test.thehrz.net`)
- traefik.http.routers.ipv6-test.entrypoints=web,websecure
- traefik.http.routers.ipv6-test.tls.certresolver=letsencrypt
- traefik.http.services.ipv6-test.loadbalancer.server.port=3000
networks:
- traefik
- ipv6-test
backend:
build: .
container_name: ipv6-test-backend
restart: always
networks:
- traefik
- ipv6-test

1
web Submodule

@ -0,0 +1 @@
Subproject commit 65b25e7ef3883695126228a3f98f3efdab07ef60