mirror of
https://github.com/newnius/YAO-docs.git
synced 2024-07-06 05:15:18 +00:00
12 lines
264 B
Bash
Executable File
12 lines
264 B
Bash
Executable File
#! /bin/bash
|
|
|
|
docker service create \
|
|
--name redis \
|
|
--hostname redis \
|
|
--network yao-net \
|
|
--replicas 1 \
|
|
--detach=true \
|
|
--endpoint-mode dnsrr \
|
|
--mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \
|
|
redis redis-server --appendonly yes
|