version: '3.6' services: app: build: context: . depends_on: - redis ports: - "8002:8002" redis: image: redis:3.2-alpine volumes: - redis_data:/data volumes: redis_data: