chore: add docker-compose.yml
This commit is contained in:
parent
9c4535cb52
commit
92437761df
@ -11,4 +11,5 @@ FROM alpine:3.15
|
||||
WORKDIR /opt/app
|
||||
RUN apk add --no-cache tzdata ca-certificates
|
||||
COPY --from=build /build/gomodproxy ./
|
||||
COPY --from=build /go/bin/ /go/bin/
|
||||
CMD ["/opt/app/gomodproxy", "--addr", ":8080"]
|
21
docker-compose.yml
Normal file
21
docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
||||
version: '3.2'
|
||||
|
||||
services:
|
||||
gomodproxy:
|
||||
image: registry.connectone.pro/github/gomodproxy:latest
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "9030:8080"
|
||||
volumes:
|
||||
- type: bind
|
||||
source: ./cache
|
||||
target: /cache
|
||||
bind:
|
||||
propagation: shared
|
||||
command:
|
||||
- /opt/app/gomodproxy
|
||||
- --dir
|
||||
- /cache
|
||||
- --addr
|
||||
- :8080
|
||||
|
Loading…
x
Reference in New Issue
Block a user