# KameHouse Docker containers

## Torrents

Fetch required Docker images:
```
docker-compose -f transmission.yml pull
```

Install Let's Encrypt certificates:
```
docker-compose -f transmission.yml run --service-ports nginx letsencrypt-install --domain <example.com> --email <root@example.com> [--staging]
```

Run:
```
docker-compose -f transmission.yml [-f transmission.production.yml] [-f transmission.override.yml] up [-d]
```

Renew Let's Encrypt certificates:
```
docker-compose -f transmission.yml exec nginx letsencrypt-renew [--staging] [--force-renewal]
```

Follow logs with:
```
docker-compose -f transmission.yml logs -f nginx
```

Open a shell in running container:
```
docker-compose -f transmission.yml exec nginx bash
```

# KameHouse Docker containers

## Torrents

Fetch required Docker images:
```
docker-compose -f transmission.yml pull
```

Install Let's Encrypt certificates:
```
docker-compose -f transmission.yml run --service-ports nginx letsencrypt-install --domain <example.com> --email <root@example.com> [--staging]
```

Run:
```
docker-compose -f transmission.yml [-f transmission.production.yml] [-f transmission.override.yml] up [-d]
```

Renew Let's Encrypt certificates:
```
docker-compose -f transmission.yml exec nginx letsencrypt-renew [--staging] [--force-renewal]
```

Follow logs with:
```
docker-compose -f transmission.yml logs -f nginx
```

Open a shell in running container:
```
docker-compose -f transmission.yml exec nginx bash
```

### Provision on a Scaleway server using Docker Machine

0. Make sure you have the [Scaleway CLI](https://github.com/scaleway/scaleway-cli) tool authenticated
1. Create the server: `docker-machine create -d scaleway --scaleway-name=torrents torrents`
2. Use this server config: `docker-machine use torrents` or `eval "$(docker-machine env torrents)"`
3. Deploy the services using the instructions above

Add instructions for Scaleway provisioning
Add instructions for Scaleway provisioning
