Combine duplicate redis_* volumes in compose file.

I _think_ yaml handles duplicates by overwriting so the conf file was not being added
This commit is contained in:
bcj 2021-05-17 00:05:11 -05:00
parent 892d338adc
commit 83078cd424

View file

@ -56,27 +56,25 @@ services:
command: redis-server --requirepass ${REDIS_ACTIVITY_PASSWORD} --appendonly yes command: redis-server --requirepass ${REDIS_ACTIVITY_PASSWORD} --appendonly yes
volumes: volumes:
- ./redis.conf:/etc/redis/redis.conf - ./redis.conf:/etc/redis/redis.conf
- redis_activity_data:/data
env_file: .env env_file: .env
ports: ports:
- 6378:6378 - 6378:6378
networks: networks:
- main - main
restart: on-failure restart: on-failure
volumes:
- redis_activity_data:/data
redis_broker: redis_broker:
image: redis image: redis
command: redis-server --requirepass ${REDIS_BROKER_PASSWORD} --appendonly yes command: redis-server --requirepass ${REDIS_BROKER_PASSWORD} --appendonly yes
volumes: volumes:
- ./redis.conf:/etc/redis/redis.conf - ./redis.conf:/etc/redis/redis.conf
- redis_broker_data:/data
env_file: .env env_file: .env
ports: ports:
- 6379:6379 - 6379:6379
networks: networks:
- main - main
restart: on-failure restart: on-failure
volumes:
- redis_broker_data:/data
celery_worker: celery_worker:
env_file: .env env_file: .env
build: . build: .