-
Notifications
You must be signed in to change notification settings - Fork 60
/
docker-compose.yml
39 lines (38 loc) · 1.08 KB
/
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
33
34
35
36
37
38
39
version: "3.3"
services:
redis:
image: "redis:alpine"
ports:
- "6379:6379"
redis_with_password:
image: "redis:alpine"
volumes:
- ./acceptance-tests/redis-confs:/usr/local/etc/redis
ports:
- target: 6380
published: 6380
protocol: tcp
mode: host
entrypoint: ["/usr/local/bin/redis-server", "/usr/local/etc/redis/with_password.conf"]
redis_with_username_and_password:
image: "redis:alpine"
volumes:
- ./acceptance-tests/redis-confs:/usr/local/etc/redis
ports:
- target: 6381
published: 6381
protocol: tcp
mode: host
entrypoint: ["/usr/local/bin/redis-server", "/usr/local/etc/redis/with_username_and_password.conf"]
tests:
image: "alpine:latest"
volumes:
- ./acceptance-tests:/acceptance-tests
- ./bin/generator:/generator
- ./bin/redis-dump-go:/redis-dump-go
depends_on:
- "redis"
- "redis_with_password"
- "redis_with_username_and_password"
working_dir: /acceptance-tests
entrypoint: ["/acceptance-tests/entrypoint.sh"]