1
0
mirror of https://github.com/newnius/YAO-docs.git synced 2024-07-06 05:15:18 +00:00
YAO-docs/sbin/start_redis.sh
2019-04-29 21:09:57 +08:00

11 lines
190 B
Bash
Executable File

#! /bin/bash
docker service create \
--name redis \
--hostname redis \
--network yao-net \
--replicas 1 \
--detach=true \
--endpoint-mode dnsrr \
redis redis-server --appendonly yes