Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

turistikrota/service.upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run Project

How to run project

1. add swarm network

docker network create --driver overlay --attachable turistikrota

2. add secrets

docker secret create jwt_private_key ./jwtRS256.key
docker secret create jwt_public_key ./jwtRS256.key.pub

3. build image

docker build --build-arg GITHUB_USER=<USER_NAME> --build-arg GITHUB_TOKEN=<ACCESS_TOKEN> -t github.com/turistikrota/service.upload .  

4. run container

docker service create --name upload-api-turistikrota-com --network turistikrota --secret jwt_private_key --secret jwt_public_key --env-file .env --publish 6018:6018 github.com/turistikrota/service.upload:latest