Files
full-stack-fastapi-template/{{cookiecutter.project_slug}}/scripts/deploy.sh
Sebastián Ramírez 2afe4159ab ♻️ Simplify Docker Compose files and deployment (#153)
* ♻️ Simplify Docker Compose files and deployment

* 🔧 Remove TRAEFIK_PUBLIC_NETWORK_IS_EXTERNAL from .env
2020-04-19 16:44:12 +02:00

17 lines
322 B
Bash

#! /usr/bin/env sh
# Exit in case of error
set -e
DOMAIN=${DOMAIN} \
TRAEFIK_TAG=${TRAEFIK_TAG} \
STACK_NAME=${STACK_NAME} \
TAG=${TAG} \
docker-compose \
-f docker-compose.yml \
config > docker-stack.yml
docker-auto-labels docker-stack.yml
docker stack deploy -c docker-stack.yml --with-registry-auth "${STACK_NAME}"