-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 859 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (32 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "2"
services:
proxy:
build: .
entrypoint: sbt "run 9000" # must be the defined port in ports
image: conbrad/redisproxy:latest
environment:
- EXPIRY_TIME=10000
- CAPACITY=1000
- REDIS_ADDR=redis
- PROTOCOL_HOST=127.0.0.1
- PROTOCOL_PORT=9002
ports:
- "9000:9000" # must be the port in entrypoint
- "9002:9002" # must be the port as PROTOCOL_PORT
depends_on:
- redis
links:
- redis
tty: true
proxy-test:
build: .
entrypoint: sbt test
image: conbrad/redisproxy:latest
tty: true
redis:
image: redis
volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
entrypoint: redis-server /usr/local/etc/redis/redis.conf
ports:
- "6379:6379"