forked from aembke/fred.rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
32 lines (31 loc) · 883 Bytes
/
docker-compose.yml
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:
unix-socket-tmp:
image: busybox
command: "chmod -R 777 ${REDIS_UNIX_SOCK_CONTAINER_DIR}"
volumes:
- '${REDIS_UNIX_SOCK_HOST_DIR}:${REDIS_UNIX_SOCK_CONTAINER_DIR}'
fred-benchmark:
depends_on:
- redis-main
- redis-cluster-6
- redis-main-unix-socket
container_name: "fred-benchmark"
build:
context: ../../../
dockerfile: tests/docker/runners/images/base.dockerfile
args:
REDIS_VERSION: "${REDIS_VERSION}"
networks:
- fred-tests
environment:
RUST_LOG: "${RUST_LOG}"
REDIS_VERSION: "${REDIS_VERSION}"
REDIS_PASSWORD: "${REDIS_PASSWORD}"
REDIS_USERNAME: "${REDIS_USERNAME}"
volumes:
- "../../../bin/benchmark:/project"
- "../../..:/fred"
- "~/.cargo/registry:/usr/local/cargo/registry"
volumes_from:
- unix-socket-tmp