From e67eee8cc8e7ab6cabf7a1e1de45d85eb244859e Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Tue, 16 Aug 2022 07:20:30 +0100 Subject: [PATCH] Add Redis to production Docker configuration --- docker/docker-compose.prod.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index 8e175d3..8c75caf 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -13,6 +13,22 @@ services: - "${NEPTUNE_PORT}:8000" # uwsgi socket env_file: - ../stack.env + volumes_from: + - tmp + + tmp: + image: busybox + command: chmod -R 777 /var/run/redis + volumes: + - /var/run/redis + + redis: + image: redis + command: redis-server /etc/redis.conf + volumes: + - ${PORTAINER_GIT_DIR}/docker/redis.conf:/etc/redis.conf + volumes_from: + - tmp networks: default: