version: '3.8' services: redis: image: redis container_name: my-redis command: redis-server --appendonly yes volumes: - redis_data:/data web: build: . command: puma -t 4:16 -w 2 -e production # command: puma -e production ports: - "9292:9292" depends_on: - redis volumes: redis_data: {}