deploy resourceD within dev compose file

This commit is contained in:
blek 2023-11-11 17:34:21 +10:00
parent bdd197857e
commit 15c94b8949
Signed by: blek
GPG Key ID: 14546221E3595D0C
3 changed files with 23 additions and 0 deletions

View File

@ -4,4 +4,8 @@
uri * strip_prefix /qr
reverse_proxy http://qr
}
handle /resource/* {
uri * strip_prefix /resource
reverse_proxy http://resourced
}
}

View File

@ -0,0 +1,10 @@
FROM golang:alpine
RUN go install github.com/cosmtrek/air@latest
WORKDIR /opt/code
# The directory will be mounted
# COPY . .
CMD [ "air", "-c", ".air.toml" ]

View File

@ -21,6 +21,15 @@ services:
volumes:
- './janitor:/opt/code'
- './volatile/files:/opt/user_uploads'
resourced:
build:
context: containers
dockerfile: go-dev.Dockerfile
networks:
bfile:
volumes:
- './resource:/opt/code'
- '/opt/code/tmp'
caddy:
image: caddy:alpine
volumes: