Sign inSign up

ivanqc92/cli-py-chat

By ivanqc92

•Updated almost 2 years ago

A CLI chat app built with Python, using a custom Docker network for container name resolution.

Image
Networking
0

288

ivanqc92/cli-py-chat repository overview

⁠Overview

A simple command-line chat application written in Python and running in Docker containers. It consists of a server and a client, each as a separate image, communicating over a custom network that enables container name resolution. The server listens on port 12345, handling connections and exchanging messages with the client for real-time interaction. Future updates may include additional features to enhance functionality.

⁠Features

  1. Server and client run in isolated containers.
  2. Containers communicate using a shared custom Docker network.
  3. Simple text-based chat interface.

⁠Setup

Create chat-network:

$ docker network create -d bridge chat-network

Run chat_server:

$ docker run -it --rm --name chat_server --network chat-network -p 12345:12345 ivanqc92/cli-py-chat:server

Open a new terminal window to run chat_client:

$ docker run -it --rm --name chat_client --network chat-network ivanqc92/cli-py-chat:client

To shutdown the server type exit:

Client: exit

Tag summary

Content type

Image

Digest

sha256:b518b88f9…

Size

44.5 MB

Last updated

almost 2 years ago

docker pull ivanqc92/cli-py-chat:client