# Self-host evcc

> A smart charging controller that charges your electric car from solar surplus and cheap tariffs.

- Page: https://levelrail.com/templates/evcc/
- JSON: https://levelrail.com/templates/evcc.json
- Category: Applications
- Licence: MIT (Permissive license)
- Source: https://github.com/evcc-io/evcc
- Upstream docs: https://docs.evcc.io/

## Requirements
- Memory: about 128 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 0.319.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| evcc | evcc/evcc | 0.319.0 | 7070 | data -> /root/.evcc |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| evcc | TZ | preset |

## Deploy

### CLI

```bash
levelrail-cli templates install evcc --name my-evcc
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain evcc=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/evcc/install \
  -d '{
    "name": "my-evcc"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## First run
1. Open the address and finish the setup wizard to add your charger, meter and vehicle.

## Questions

### Can I deploy evcc on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for evcc, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image evcc/evcc:0.319.0 is what you deploy there.

Self-host evcc, evcc docker compose file, deploy evcc on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
