deploy resourceD within dev compose file
This commit is contained in:
parent
84fa988538
commit
27e386fb35
|
@ -4,4 +4,8 @@
|
|||
uri * strip_prefix /qr
|
||||
reverse_proxy http://qr
|
||||
}
|
||||
handle /resource/* {
|
||||
uri * strip_prefix /resource
|
||||
reverse_proxy http://resourced
|
||||
}
|
||||
}
|
|
@ -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" ]
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue