SNRK-95: Add secrets

This commit is contained in:
Kirill Grachev 2023-05-19 19:27:51 +03:00
parent 46658ef690
commit 9f6f713aee
3 changed files with 11 additions and 2 deletions

View File

@ -20,4 +20,5 @@ gradlew.bat
Dockerfile Dockerfile
tmp tmp
rundata rundata
credentials.json

View File

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

View File

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