-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
62 lines (56 loc) · 1.33 KB
/
docker-compose.yaml
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
version: '3.9'
volumes:
redis:
driver: local
services:
redis:
build:
context: ./docker/redis
dockerfile: ./Dockerfile
container_name: ${REDIS_CONTAINER_NAME}
command: --requirepass ${REDIS_PASSWORD}
volumes:
- .data/redis:/data
ports:
- ${REDIS_PORT}:6379
phpredisadmin:
build:
context: ./docker/phpredisadmin
dockerfile: ./Dockerfile
container_name: ${PRA_CONTAINER_NAME}
environment:
- ADMIN_USER=${PRA_ADMIN_USER}
- ADMIN_PASS=${PRA_ADMIN_PASS}
- REDIS_1_HOST=redis
- REDIS_1_PORT=6379
- REDIS_1_AUTH=${REDIS_PASSWORD}
ports:
- ${PRA_PORT}:80
depends_on:
- redis
python-redis:
build:
context: ./docker/python-redis
dockerfile: ./Dockerfile
container_name: ${PYREDIS_CONTAINER_NAME}
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_AUTH=${REDIS_PASSWORD}
volumes:
- ./docker/python-redis/src:/root/src
depends_on:
- redis
redis-commander:
build:
context: ./docker/redis-commander
dockerfile: ./Dockerfile
container_name: ${REDCOM_CONTAINER_NAME}
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD}
ports:
- ${REDCOM_PORT}:8081
depends_on:
- redis