Emily CLI Documentation
Release-v3.1.0Emily combines the powers of Python and Docker to build stable and consistent machine learning and datascience python environments. Emily is useful for large cross-team project development as well as for simply running a single jupyter notebook or python script.
Downloademily@latestSee earlier versions
buildopenenvironmentconfigurationserversdeploymentdeploylistmountunmountstopdroploginlogoutdoctorupdatewhoamiloguninstallinstall
$ emily configuration add compose [options]Add a basic Docker Compose configuration to your project.
$ emily configuration add compose? Emily: Choose a project:(Use arrow keys, confirm with ENTER) … > M9VHKD - my-projectAB82JD - movie-recommender · M9VHKD - my-project? Emily: Please select a configuration:(Use arrow keys, confirm with ENTER) … dev> staging+ Add new configuration · staging? Emily: Please choose a Docker Compose configuration:(Use arrow keys, confirm with ENTER) … > BaseGPUHTTPS reverse proxy (Nginx)External network · BaseEmily: Compose configuration "staging" added to projectmy-project (M9VHKD)
Created:
- /my/projects/my-project/staging/docker-compose.emily.ymlDocker Compose base configuration
The emily configuration add compose command adds the base Docker Compose configuration to your project.
The prompt for Docker Compose configuration type, pass --silent to the command.
The base configuration is the basic docker-compose.emily.yml that Emily automatically creates when building a project.
It specifies the following:
- Host/container port mapping
- Location of the Dockerfile and build context
- Provisions the auto-generated
.envfile to the project container - Project-specific network
version: "3" services: emily-my-project-m9vhkd: image: emily-my-project-m9vhkd container_name: emily-my-project-m9vhkd build: context: ../../ dockerfile: ./Dockerfile env_file: - ./.env ports: - ${HOST_PORT}:${CONTAINER_PORT} networks: - emily-my-project-m9vhkd-network networks: emily-my-project-m9vhkd-network: driver: bridge name: emily-my-project-m9vhkd-network