An open API service indexing awesome lists of open source software.

https://github.com/gh640/docker-proxy-samples

🐳 Samples to try Docker proxy feature
https://github.com/gh640/docker-proxy-samples

docker docker-compose

Last synced: 2 months ago
JSON representation

🐳 Samples to try Docker proxy feature

Awesome Lists containing this project

README

          

# `docker-proxy-samples`

Samples to try Docker proxy feature.

## Prerequiresites

- Docker
- Docker Compose

## Usage

### 1. Build Docker images

```bash
docker compose build
```

### 2. Start `proxy` container

```bash
docker compose up proxy
```

### 3. Start `client` container and make requests

Open a new terminal and run the following command:

```bash
docker compose run --rm -it client python
```

```python
>>> import requests as r
>>> r.get('https://example.com')

```

You can see the proxy is used.