SNRK-95: Add secrets
This commit is contained in:
parent
46658ef690
commit
9f6f713aee
@ -21,3 +21,4 @@ Dockerfile
|
|||||||
|
|
||||||
tmp
|
tmp
|
||||||
rundata
|
rundata
|
||||||
|
credentials.json
|
@ -20,4 +20,6 @@ RUN ./gradlew clean build
|
|||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
RUN mkdir -p ~/.aws/ && ln -s /run/secrets/credentials.json ~/.aws/credentials.json
|
||||||
|
|
||||||
CMD ./gradlew :snark-main:run_server
|
CMD ./gradlew :snark-main:run_server
|
@ -9,5 +9,11 @@ services:
|
|||||||
- 8081
|
- 8081
|
||||||
volumes:
|
volumes:
|
||||||
- storage:/app/rundata
|
- storage:/app/rundata
|
||||||
|
secrets:
|
||||||
|
- credentials.json
|
||||||
volumes:
|
volumes:
|
||||||
storage:
|
storage:
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
credentials.json:
|
||||||
|
file: ./credentials.json
|
Loading…
Reference in New Issue
Block a user