docker-stacks/redis/docker-compose.yml

21 lines
409 B
YAML
Raw Normal View History

2020-07-05 01:35:59 +00:00
version: '3.7'
services:
redis:
# https://hub.docker.com/r/portainer/portainer
image: redis:alpine
container_name: redis
ports:
- "127.0.0.1:6379:6379/tcp"
env_file: .env
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"
#volumes:
# redis_data:
# name: redis_data