2022-08-15 13:52:10 +03:00
|
|
|
[services.redis]
|
|
|
|
image = "redis:alpine"
|
|
|
|
container_name = "redis"
|
|
|
|
user = "root"
|
|
|
|
command = "redis-server /etc/redis.conf"
|
|
|
|
restart = "unless-stopped"
|
|
|
|
volumes = ["/docker/redis/redis.conf:/etc/redis.conf", "redis_temp:/tmp/redis"]
|
|
|
|
|
|
|
|
[services.redis_temp]
|
2022-08-17 14:28:02 +03:00
|
|
|
image = "busybox:stable"
|
2022-08-15 13:52:10 +03:00
|
|
|
container_name = "redis_temp"
|
|
|
|
command = "chmod -R 777 /tmp/redis"
|
|
|
|
volumes = ["redis_temp:/tmp/redis"]
|
|
|
|
|
|
|
|
[volumes.redis_temp]
|
|
|
|
external = true
|