services: redis: image: redis:latest container_name: redis ports: - '6379:6379' networks: - network-example networks: network-example: external: true