1
0
mirror of https://github.com/kataras/iris.git synced 2026-02-08 03:35:59 +00:00

example: sessions: scale out using redis

Former-commit-id: a811648e0bdf83c289656426f8ba67d785b7d5cc
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-07-19 12:55:48 +03:00
parent 3faaf954bb
commit 302597faac
4 changed files with 66 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
# docker-compose up [--build]
version: '3'
services:
redis-server:
image: redis
app1:
build: .
depends_on:
- redis-server
ports:
- 8080:8080
environment:
- PORT=8080
- REDIS_ADDR=redis-server:6379
app2:
build: .
depends_on:
- redis-server
ports:
- 9090:9090
environment:
- PORT=9090
- REDIS_ADDR=redis-server:6379