version: '3' networks: redis: external: false services: db: image: redis restart: always ports: - "127.0.0.1:6379:6379" networks: - redis