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