Skip to content

Commit

Permalink
Add redis-commander container
Browse files Browse the repository at this point in the history
  • Loading branch information
pdavide committed Jan 25, 2021
1 parent fdff55e commit 189a7a3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@

#### Available tasks

```
```shell
bin/phing build # build the portal
bin/phing test # perform tests
bin/phing clean # delete containers and data
bin/phing stop # stop containers
bin/phing start # start containers
bin/phing pma # start phpMyAdmin container (not started with bin/phing start)
bin/phing kibana # start kibana container (not started with bin/phing start)
bin/phing sentinel # start redis sentinel container (not started with bin/phing start)
bin/phing kibana # start Kibana container (not started with bin/phing start)
bin/phing sentinel # start Redis Sentinel container (not started with bin/phing start)
bin/phing redis-commander # start Redis Commander container (not started with bin/phing start)
bin/phing build-portal-image # build a docker image for the portal application
bin/phing build-matomo-image # build a docker image for matomo
```
Expand Down
11 changes: 11 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,17 @@
</if>
</target>

<!-- Target: start Redis Commander -->
<target name="redis-commander">
<if>
<available file="containers" type="dir" property="ignored"/>
<then>
<echo msg="Running Redis Commander..."/>
<exec command="docker-compose up -d redis-commander" dir="containers" passthru="true"/>
</then>
</if>
</target>

<!-- Target: Visitor Generator -->
<target name="visitorgen">
<if>
Expand Down
15 changes: 13 additions & 2 deletions containers/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ services:
networks:
- frontend

# ElasticSearch
# elasticsearch
elasticsearch:
image: wai-elasticsearch:dev
build:
Expand All @@ -206,6 +206,7 @@ services:
networks:
- backend

# kibana
kibana:
image: wai-kibana:dev
build:
Expand All @@ -222,7 +223,7 @@ services:
- frontend
- backend

# Redis Sentinel
# redis-sentinel
redis-sentinel:
image: wai-redis-sentinel:dev
depends_on:
Expand All @@ -234,3 +235,13 @@ services:
- REDIS_IPA_INDEX_SENTINEL_SET=${REDIS_IPA_INDEX_SENTINEL_SET}
networks:
- backend

# redis-commander
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=redis
ports:
- "8081:8081"
networks:
- backend

0 comments on commit 189a7a3

Please sign in to comment.