---
description: These pages explain how to deploy MedCo in different scenarios.
---

# Deployment



Each deployment scenario corresponds to a deployment profile, as described below. All these instructions use the deployment scripts from the [medco](https://github.com/ldsec/medco) repository.

**If you are new to MedCo…**

… and want to try to deploy the system on a single machine to test it, you should should follow the [Local Test Deployment](deployment/local-test-deployment) guide.

… and want to create or join a MedCo network, you should follow the [Network Deployment](deployment/network-deployment) guide.

… and want to develop around MedCo, you should follow the [Local Development Deployment](../developers/local-development-deployment) guide.

## Deployment Profiles

A _deployment profile_ is composed of two things:

* deployment files `medco/deployments/<profile name>/`: docker-compose file and parameters like ports to expose, log level, etc.
* configuration files `medco/deployments/<profile name>/configuration/`: files mounted in the docker containers, containing the cryptographic keys, the certificates, etc.

Some profiles are provided by default, for development or testing purposes. Those should not be used in a production scenario with real data, as the private keys are set by default, thus not private. Other types of profiles must generated using the script in `medco/scripts/network-profile-tool/`.

The different profiles are the following:

### _test-local-3nodes_ ([Local Test Deployment](deployment/local-test-deployment))

* for test on a single machine (used by the MedCo live demo)
* 3 nodes on any host
* using the latest release of the source codes
* no debug logging
* profile pre-generated

### _network_ ([Network Deployment](deployment/network-deployment))

* for test or production deployment on several different hosts
* a single node on a host part of a MedCo network
* using the latest release of the source codes
* no debug logging
* profile must be generated prior to use with the provided scripts

### _dev-local-3nodes_ ([Local Development Deployment](../developers/local-development-deployment))

* for software development
* 3 nodes on the local host
* using development version of source codes
* debug logging enabled
* profile pre-generated
