Skip to content

bitmyth/accounts

Repository files navigation

Accounts

Deploy to Swarm

Add label role=db to node where mysql will runs

docker node update --label-add role=db NODE

export env variables

export $(cat .env.prod)

deploy

docker stack deploy -c stack.yml accounts

migrateion

kubectl create configmap migration --from-file=src/database/migrations
kubectl apply -f k8s/migration.yaml

cert-manager

kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.3.1/cert-manager.yaml