Skip to content

Commit

Permalink
Add stack test network
Browse files Browse the repository at this point in the history
  • Loading branch information
physikerwelt committed Nov 5, 2023
1 parent bb3e7e9 commit 0131603
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,12 @@ jobs:
uses: actions/checkout@v2
-
name: Build the stack
env:
MW_ADMIN_PASS: ${{ secrets.MW_ADMIN_PASS }}
DB_PASS: ${{ secrets.DB_PASS }}
WIKIBASE_HOST: ${{ secrets.WIKIBASE_HOST}}
WIKIBASE_PORT: ${{ secrets.WIKIBASE_PORT}}
WDQS_FRONTEND_HOST: ${{ secrets.WDQS_FRONTEND_HOST}}
WDQS_FRONTEND_PORT: ${{ secrets.WDQS_FRONTEND_PORT}}
QUICKSTATEMENTS_HOST: ${{ secrets.QUICKSTATEMENTS_HOST}}
QUICKSTATEMENTS_PORT: ${{ secrets.QUICKSTATEMENTS_PORT}}
WB_PUBLIC_HOST_AND_PORT: ${{ secrets.WB_PUBLIC_HOST_AND_PORT}}
QS_PUBLIC_HOST_AND_PORT: ${{ secrets.QS_PUBLIC_HOST_AND_PORT}}
run: >
MW_ADMIN_PASS=${{ secrets.MW_ADMIN_PASS }}
DB_PASS=${{ secrets.DB_PASS }}
docker swarm init &&
docker stack deploy --compose-file docker-compose-stack.yml mardistack
docker network create --driver=overlay --attachable test
-
name: Show the networks
run: docker network ls
-
name: Deploy the stack
run: docker stack deploy --compose-file docker-compose-stack.yml mardistack
8 changes: 7 additions & 1 deletion docker-compose-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@
environment:
- REDIS_HOSTS=redis:6379
ports:
- "8081:8081"
- "8081:8081"
hostname: rediscommander
networks:
- test
networks:
test:
external: true

0 comments on commit 0131603

Please sign in to comment.