-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdocker-compose.yml
93 lines (84 loc) · 1.96 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
services:
mysql:
image: mysql:8
environment:
- MYSQL_ROOT_PASSWORD=password
networks:
- abuse
ports:
- "9307:3306"
adminer:
image: adminer
container_name: abuse-adminer
restart: always
ports:
- 9506:8080
networks:
- abuse
redis:
image: redis:6.0-alpine
container_name: redis
networks:
- abuse
tests:
build:
context: .
dockerfile: Dockerfile.php-${PHP_VERSION:-8.3}
networks:
- abuse
depends_on:
- redis
- mysql
volumes:
- ./phpunit.xml:/code/phpunit.xml
- ./src:/code/src
- ./tests:/code/tests
redis-insight:
image: redis/redisinsight:latest
restart: unless-stopped
networks:
- abuse
environment:
- REDIS_HOSTS=redis-cluster-0:6379
ports:
- "8081:5540"
volumes:
- redisinsight:/data
redis-cluster-0:
image: docker.io/bitnami/redis-cluster:7.4
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_NODES=redis-cluster-0 redis-cluster-1 redis-cluster-2 redis-cluster-3
- REDIS_CLUSTER_CREATOR=yes
- REDIS_CLUSTER_REPLICAS=0
networks:
- abuse
depends_on:
- redis-cluster-1
- redis-cluster-2
- redis-cluster-3
redis-cluster-1:
image: docker.io/bitnami/redis-cluster:7.4
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_NODES=redis-cluster-0 redis-cluster-1 redis-cluster-2 redis-cluster-3
networks:
- abuse
redis-cluster-2:
image: docker.io/bitnami/redis-cluster:7.4
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_NODES=redis-cluster-0 redis-cluster-1 redis-cluster-2 redis-cluster-3
networks:
- abuse
redis-cluster-3:
image: docker.io/bitnami/redis-cluster:7.4
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_NODES=redis-cluster-0 redis-cluster-1 redis-cluster-2 redis-cluster-3
networks:
- abuse
networks:
abuse:
volumes:
redisinsight: