mirror of https://github.com/helloxz/dnmp.git
xiaoz
11 months ago
1 changed files with 3 additions and 3 deletions
@ -1,12 +1,12 @@ |
|||||||
version: '3.8' |
version: "3.8" |
||||||
|
|
||||||
services: |
services: |
||||||
redis: |
redis: |
||||||
image: redis:6.2.6-alpine |
image: redis:6.2.6-alpine |
||||||
container_name: redis |
container_name: redis |
||||||
# user: "${USER_ID}:${GROUP_ID}" |
# user: "${USER_ID}:${GROUP_ID}" |
||||||
network_mode: host |
network_mode: "host" |
||||||
restart: always |
restart: always |
||||||
volumes: |
volumes: |
||||||
- ./data:/data |
- ./data:/data |
||||||
- ./data/redis.conf:/data/redis.conf |
- ./data/redis.conf:/data/redis.conf |
||||||
|
command: ["redis-server", "/data/redis.conf"] |
||||||
|
Loading…
Reference in new issue