Created
January 2, 2021 03:35
-
-
Save moracabanas/edd00094c562f4819e897ae0c0ec625e to your computer and use it in GitHub Desktop.
.env on Docker Swarm deployments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can define stack name on your .env or do deploy.sh <stack_name> | |
export $(cat .env) > /dev/null 2>&1; | |
docker stack deploy -c docker-compose.yml ${1:-STACK_NAME} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment