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 cf4fdd5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 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 mardistack --compose-file docker-compose-stack.yml
25 changes: 16 additions & 9 deletions docker-compose-stack.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
services:
redis:
image: redis:7
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=redis:6379
ports:
- "8081:8081"
services:
redis:
image: redis:7
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
hostname: rediscommander
networks:
- test
- default
networks:
test:
external: true

0 comments on commit cf4fdd5

Please sign in to comment.