Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

mc256/containerd-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please try out nerdctl


containerd-compose (WIP)

containerd-compose is a tool for defining and running multi-container applications. With containerd-compose, you use a YAML file (e.g. the docker-compose.yml) to configure your application's services. Then, using a single command, you create and start all the services from your configuration.

This program is designed to be compatible with docker-compose files, but we have not yet implemented all the features. Please check the Supported Parameters section.

Install

Please install containerd first.

git clone https://github.com/mc256/containerd-compose
cd ./containerd-compose
go install

Supported Parameters

  • services
    • image
    • volumes (short syntax only)
    • volumes_from
    • environment

Example

containerd-compose also supports .env file. You can write $ENVIRONMENT_VARIABLES in your compose file.

Example for nextcloud:

version: '2'

volumes:
  nextcloud:
  db:
  dbrun:

services:
  db:
    image: mariadb
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    restart: always
    volumes:
      - db:/var/lib/mysql:rw
      - dbrun:/var/run:rw
    environment:
      - MYSQL_ROOT_PASSWORD=$PASSWORD
      - MYSQL_PASSWORD=$PASSWORD
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
  app:
    image: nextcloud:fpm
    links:
      - db
    volumes:
      - nextcloud:/var/www/html

  web:
    image: nginx
    ports:
      - 8080:80
    links:
      - app
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
    volumes_from:
      - app

About

Define and run multi-container applications with containerd

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages