deploy resourceD within dev compose file
This commit is contained in:
parent
9a9f3cd58d
commit
c43b8c8fb3
|
@ -4,4 +4,8 @@
|
||||||
uri * strip_prefix /qr
|
uri * strip_prefix /qr
|
||||||
reverse_proxy http://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:
|
volumes:
|
||||||
- './janitor:/opt/code'
|
- './janitor:/opt/code'
|
||||||
- './volatile/files:/opt/user_uploads'
|
- './volatile/files:/opt/user_uploads'
|
||||||
|
resourced:
|
||||||
|
build:
|
||||||
|
context: containers
|
||||||
|
dockerfile: go-dev.Dockerfile
|
||||||
|
networks:
|
||||||
|
bfile:
|
||||||
|
volumes:
|
||||||
|
- './resource:/opt/code'
|
||||||
|
- '/opt/code/tmp'
|
||||||
caddy:
|
caddy:
|
||||||
image: caddy:alpine
|
image: caddy:alpine
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue