I have a docker-compose.yaml and it was working fine before. But now it just keeps restarting. My main question is how can I see the reason or logs why this image keeps restarting?
redis-cache:
container_name: cache
restart: always
logging:
options:
max-size: 10m
build:
context: ./redis
dockerfile: Dockerfile
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
ports:
- "${REDIS_PORT}:${REDIS_PORT}"
privileged: true
volumes:
- ./redis/cache:/data
networks:
- default-web-server