feat(docker): add default config file

This commit is contained in:
Alexis Couvreur
2022-11-11 18:35:59 +00:00
parent 6e2800a1f3
commit ccf0829274
2 changed files with 14 additions and 1 deletions

View File

@@ -20,8 +20,9 @@ RUN make BUILDTIME=${BUILDTIME} VERSION=${VERSION} GIT_REVISION=${REVISION} ${TA
FROM alpine FROM alpine
COPY --from=build /go/src/sablier/sablier* /etc/sablier/sablier COPY --from=build /go/src/sablier/sablier* /etc/sablier/sablier
COPY docker/sablier.yaml /etc/sablier/sablier.yaml
EXPOSE 10000 EXPOSE 10000
ENTRYPOINT [ "/etc/sablier/sablier" ] ENTRYPOINT [ "/etc/sablier/sablier" ]
CMD [ "start", "--provider.name=docker"] CMD [ "--configFile=/etc/sablier/sablier.yaml", "start" ]

12
docker/sablier.yaml Normal file
View File

@@ -0,0 +1,12 @@
server:
port: 10000
base-path: /
storage:
file: /etc/sablier/state.json
provider:
name: docker
logging:
level: info
strategy:
dynamic:
custom-themes-path: /etc/sablier/themes