Manage, Configure and Deploy your services and AWS services and applications from your docker-compose definitions https://docs.compose-x.io
  • Python 97.5%
  • Gherkin 2%
  • Makefile 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-02-25 09:00:37 +00:00
.cicd Dependencies updates (#819) 2026-02-13 11:11:53 +00:00
.github Dependencies updates (#819) 2026-02-13 11:11:53 +00:00
.scripts Updated copyright header 2025-03-02 12:15:04 +00:00
docs Added test and docs for stop_grace_timeout (#814) 2025-11-20 22:06:30 +00:00
e2e-examples/nginx_webapp Reminding to set a default region via env var or set the region to use 2024-08-26 15:52:44 +01:00
ecs_composex x-tagging code updates & typing (#821) 2026-02-25 09:00:37 +00:00
tests Added the functions to lookup VPC via ARN and Identifier on top of Tags (#801) 2025-08-20 19:03:35 +01:00
upgrade_scripts Updated copyright header 2025-03-02 12:15:04 +00:00
use-cases x-tagging code updates & typing (#821) 2026-02-25 09:00:37 +00:00
.dockerignore Refactored x_dependencies for x-rds 2022-02-25 12:09:47 +00:00
.editorconfig Code flake linted and all instructions for --use-pep517 (#498) 2021-08-19 17:09:49 +00:00
.flake8 AppMesh and ACM support (#95) 2020-07-13 15:19:28 +01:00
.gitignore Lookup RDS DB/Clusters and secrets (#211) 2020-10-16 12:31:18 +01:00
.pre-commit-config.yaml Dependencies updates (#819) 2026-02-13 11:11:53 +00:00
.sonarcloud.properties pre-release 0.13.0-rc1 (#420) 2021-03-04 00:47:31 +00:00
cli.Dockerfile Build docker image only for py3.10 2023-11-15 22:24:14 +00:00
CODE_OF_CONDUCT.md Updated mail address for documentation and docs to new domain 2021-03-03 23:41:23 +00:00
CONTRIBUTING.rst Adding documentation on creating new modules 2022-05-04 21:58:59 +01:00
HISTORY.rst 1.1.7 Changelog and warning for x-appmesh 2025-03-02 11:21:54 +00:00
LICENSE LICENSE change to MPL-2.0 2021-03-24 16:13:52 +00:00
Makefile Refactoring the resources and modules (#646) 2022-11-21 20:30:26 +00:00
MANIFEST.in Implement FireLens logging options. (#617) 2022-06-01 18:11:08 +00:00
NOTICES.rst Fix firelens config files import (#683) 2023-08-07 13:54:27 +01:00
poetry.lock Dependencies updates (#819) 2026-02-13 11:11:53 +00:00
pyproject.toml Bump to 1.1.9 2026-02-14 06:12:10 +00:00
README.rst Release 0.23.0 (#650) 2023-01-11 09:50:09 +00:00
SECURITY.rst pre-commit cleanup 2022-02-25 12:09:47 +00:00
tox.ini AppMesh and ACM support (#95) 2020-07-13 15:19:28 +01:00

.. meta::
    :description: ECS Compose-X
    :keywords: AWS, ECS, Fargate, Docker, Containers, Compose, docker-compose

============
ECS ComposeX
============

|PYPI_VERSION| |PYPI_LICENSE| |PY_DLS|

|CODE_STYLE| |ISORT| |TDD| |BDD|

|QUALITY|

|BUILD|

-----------------------------------------------
The no-code CDK for docker-compose & AWS ECS
-----------------------------------------------

Deploy your services to AWS ECS from your docker-compose files in 3 steps

* Step 1. Install ECS Compose-x
* Step 2. Use your existing docker-compose files. Optionally, add Compose-X extensions.
* Step 3. Deploy to AWS via CloudFormation.


What does it do?
========================

* Automatically deploy applications to AWS using existing docker-compose files
    * Deploys multiple applications to AWS in a single command
    * Creates AWS resources such as EC2 Instances, ECS Clusters and Containers
    * Automatically configures IAM roles and Networking for secure and reliable access

* Expand the definitions with AWS CloudFormation resources

* Allows to use existing resources in your AWS Account
* Can be extended with custom modules/hooks to customize the deployment process
* Automatically rolls back the application in case of errors, to previous version or to a stable state


Useful Links
===============

* `Documentation`_
* `Labs <https://labs.compose-x.io/>`_
* `Feature requests`_
* `Issues`_
* `Compatibility Matrix`_


Installation
=====================

.. code-block:: bash

    # Inside a python virtual environment
    python3 -m venv venv
    source venv/bin/activate
    pip install pip -U
    pip install ecs-composex

    # For your user only
    pip install ecs-composex --user

Usage
======

.. code-block:: bash

    # Get all the options
    ecs-compose-x -h

    # Simple example using docker-compose file and an extension with your AWS Settings
    ecs-compose-x render -d templates -n my-new-stack -f docker-compose.yaml -f aws-settings.yaml


.. _`Mark Peek`: https://github.com/markpeek
.. _`AWS ECS CLI`: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI.html
.. _Troposphere: https://github.com/cloudtools/troposphere
.. _Blog: https://blog.compose-x.io/
.. _Docker Compose: https://docs.docker.com/compose/
.. _ECS ComposeX: https://docs.compose-x.io
.. _YAML Specifications: https://yaml.org/spec/
.. _Extensions fields:  https://docs.docker.com/compose/compose-file/#extension-fields
.. _ECS ComposeX Project: https://github.com/orgs/lambda-my-aws/projects/3
.. _CICD Pipeline for multiple services on AWS ECS with ECS ComposeX: https://blog.compose-x.io/posts/cicd-pipeline-for-multiple-services-on-aws-ecs-with-ecs-composex/
.. _Feature requests: https://github.com/compose-x/ecs_composex/issues/new?assignees=JohnPreston&labels=enhancement&template=feature_request.md&title=%5BFR%5D+%3Caws+service%7Cdocker+compose%3E+
.. _Issues: https://github.com/compose-x/ecs_composex/issues/new?assignees=JohnPreston&labels=bug&template=bug_report.md&title=%5BBUG%5D


.. _AWS ECS:            https://nightly.docs.compose-x.io/syntax/composex/ecs.html
.. _AWS VPC:            https://nightly.docs.compose-x.io/syntax/composex/vpc.html
.. _AWS RDS:            https://nightly.docs.compose-x.io/syntax/composex/rds.html
.. _AWS DynamoDB:       https://nightly.docs.compose-x.io/syntax/composex/dynamodb.html
.. _AWS DocumentDB:     https://nightly.docs.compose-x.io/syntax/composex/docdb.html
.. _AWS ACM:            https://nightly.docs.compose-x.io/syntax/composex/acm.html
.. _AWS ELBv2:          https://nightly.docs.compose-x.io/syntax/composex/elbv2.html
.. _AWS S3:             https://nightly.docs.compose-x.io/syntax/composex/s3.html
.. _AWS IAM:            https://nightly.docs.compose-x.io/syntax/composex/ecs.details/iam.html
.. _AWS Kinesis:        https://nightly.docs.compose-x.io/syntax/composex/kinesis.html
.. _AWS SQS:            https://nightly.docs.compose-x.io/syntax/composex/sqs.html
.. _AWS SNS:            https://nightly.docs.compose-x.io/syntax/composex/sns.html
.. _AWS KMS:            https://nightly.docs.compose-x.io/syntax/composex/kms.html
.. _AWS ElastiCache:    https://nightly.docs.compose-x.io/syntax/composex/elasticache.html
.. _AWS EC2:            https://nightly.docs.compose-x.io/features.html#ec2-resources-for-ecs-cluster
.. _AWS AppMesh:        https://nightly.docs.compose-x.io/readme/appmesh.html
.. _AWS CloudWatch:     https://nightly.docs.compose-x.io/syntax/compose_x/alarms.html
.. _Lookup:             https://nightly.docs.compose-x.io/syntax/compose_x/common.html#lookup
.. _the compatibilty matrix: https://nightly.docs.compose-x.io/compatibility/docker_compose.html
.. _Compatibility Matrix: https://nightly.docs.compose-x.io/compatibility/docker_compose.html
.. _Find out how to use ECS Compose-X in AWS here: https://blog.compose-x.io/posts/use-your-docker-compose-files-as-a-cloudformation-template/index.html
.. _Documentation: https://docs.compose-x.io

.. |BUILD| image:: https://codebuild.eu-west-1.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiWjIrbSsvdC9jZzVDZ3N5dVNiMlJCOUZ4M0FQNFZQeXRtVmtQbWIybUZ1ZmV4NVJEdG9yZURXMk5SVVFYUjEwYXpxUWV1Y0ZaOEcwWS80M0pBSkVYQjg0PSIsIml2UGFyYW1ldGVyU3BlYyI6Ik1rT0NaR05yZHpTMklCT0MiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=main

.. |PYPI_VERSION| image:: https://img.shields.io/pypi/v/ecs_composex.svg
        :target: https://pypi.python.org/pypi/ecs_composex

.. |PYPI_DL| image:: https://img.shields.io/pypi/dm/ecs_composex
    :alt: PyPI - Downloads
    :target: https://pypi.python.org/pypi/ecs_composex

.. |PYPI_LICENSE| image:: https://img.shields.io/pypi/l/ecs_composex
    :alt: PyPI - License
    :target: https://github.com/compose-x/ecs_composex/blob/master/LICENSE

.. |PYPI_PYVERS| image:: https://img.shields.io/pypi/pyversions/ecs_composex
    :alt: PyPI - Python Version
    :target: https://pypi.python.org/pypi/ecs_composex

.. |PYPI_WHEEL| image:: https://img.shields.io/pypi/wheel/ecs_composex
    :alt: PyPI - Wheel
    :target: https://pypi.python.org/pypi/ecs_composex

.. |CODE_STYLE| image:: https://img.shields.io/badge/codestyle-black-black
    :alt: CodeStyle
    :target: https://pypi.org/project/black/

.. |TDD| image:: https://img.shields.io/badge/tdd-pytest-black
    :alt: TDD with pytest
    :target: https://docs.pytest.org/en/latest/contents.html

.. |BDD| image:: https://img.shields.io/badge/bdd-behave-black
    :alt: BDD with Behave
    :target: https://behave.readthedocs.io/en/latest/

.. |QUALITY| image:: https://sonarcloud.io/api/project_badges/measure?project=compose-x_ecs_composex&metric=alert_status
    :alt: Code scan with SonarCloud
    :target: https://sonarcloud.io/dashboard?id=compose-x_ecs_composex

.. |PY_DLS| image:: https://img.shields.io/pypi/dm/ecs-composex
    :target: https://pypi.org/project/ecs-composex/

.. |ISORT| image:: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
    :target: https://pycqa.github.io/isort/