chore: add docker-compose.yml

This commit is contained in:
Georg K 2022-03-03 02:39:44 +03:00
parent 9c4535cb52
commit 92437761df
2 changed files with 22 additions and 0 deletions

View File

@ -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
View 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