Add Redis to production Docker configuration

This commit is contained in:
Mark Veidemanis 2022-08-16 07:20:30 +01:00
parent c984e70689
commit e67eee8cc8
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 16 additions and 0 deletions

View File

@ -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: