-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (54 loc) · 1.32 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
name: valkey
services:
db:
image: valkey/valkey:latest
container_name: valkey
hostname: valkey
restart: always
pull_policy: always
environment:
- ALLOW_EMPTY_PASSWORD=no
- VALKEY_DATABASES=10000000
- VALKEY_EXTRA_FLAGS=--save 60 1 --loglevel warning
- VALKEY_PASSWORD=${DB_ADMIN_PASS:-l37u58CUsw2BXURTrTmnjYjBO5IDRyEP}
ports:
- 6379:6379
volumes:
- '/var/lib/srv/$USER/docker/valkey/valkey/latest/rootfs/data/db/valkey:/data'
healthcheck:
test: ['CMD-SHELL', 'valkey-cli ping | grep PONG']
interval: 10s
timeout: 5s
retries: 10
extra_hosts:
- 'localhost:172.17.0.1'
- 'valkey:host-gateway'
- 'host.docker.internal:host-gateway'
networks:
- valkey
admin:
image: erikdubbelboer/phpredisadmin:1
container_name: valkey-admin
hostname: valkey-admin
restart: always
pull_policy: always
tty: true
stdin_open: true
environment:
- REDIS_1_NAME=valkey
- REDIS_1_HOST=valkey
ports:
- '172.17.0.1:59031:80'
depends_on:
db:
condition: service_healthy
extra_hosts:
- 'localhost:172.17.0.1'
- 'valkey:host-gateway'
- 'host.docker.internal:host-gateway'
networks:
- valkey
networks:
valkey:
name: valkey
external: false