pref: add web submodule
This commit is contained in:
parent
b069493363
commit
1aae9a9eca
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "web"]
|
||||
path = web
|
||||
url = https://git.thehrz.net/thehrz/ipv6-test.git
|
9
Dockerfile
Normal file
9
Dockerfile
Normal 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
30
docker-compose.yml
Normal 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
1
web
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 65b25e7ef3883695126228a3f98f3efdab07ef60
|
Loading…
Reference in New Issue
Block a user