# docker-compsoe-redis.yml
version: '3.1'
services:
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- 6379:6379
volumes:
- /data/projects/redis/data:/data
- /data/projects/redis/conf/redis.conf:/usr/local/etc/redis/redis.conf
network_mode: bridge
command: redis-server /usr/local/etc/redis/redis.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14