docker swarm init
docker swarm join --token token --advertise-addr nodepi managerip:2377
Just copy docker-compose.stack.yml
to manager filesystem.
docker network create -d overlay --attachable twir
-
Doppler
echo "token" | docker secret create twir_doppler_token -
-
Postgres
echo "twir" | docker secret create twir_postgres_user - echo "twir" | docker secret create twir_postgres_db - echo "twir" | docker secret create twir_postgres_password -
This command will deploy services from stack to the cluster.
docker stack deploy -c docker-compose.yml --with-registry-auth --prune twir
Same command as deploy