Environments are logical groupings of containers. All containers deployed inside an environment automatically have a private network built between them, enabling seamless communication.
One of the most difficult aspects of using containers is networking them together. Though this has gotten a bit easier over the years, nothing comes close to the simple, yet powerful approach of Cycle environments.
Every container deployed into the same environment has a private, encrypted network built between them, regardless of their geographic location. Instances in Tokyo can communicate with your database in California, using nothing other than the hostname. Containers obtain both a private IPv4 and IPv6 address, where the format is:
- IPv4 -
- IPv6 -
An environment service is a container Cycle starts within the environment to provide extra functionality. These services are created and managed automatically, but may have some configuration options available. At this time, two services are started in each environment:
From the environment dashboard, you are able to get a bird's eye view of all the containers running within. See where instances are deployed to, the number of containers/instances online, active services and their IPs, and a log of all activity within the environment. To get to the container dashboard:
- Select the Environments tab on the left in the navigation menu.
- Click the name of environment you wish to see from the list.
- Alternatively, from within an environment, click the "Dashboard" tab at any time.
While containers can be managed individually, you may wish to start or stop all containers within an environment simultaneously.
Navigate to an environment dashboard, and in the top right corner you will see three buttons:
- - Start All Containers.
- - Stop All Containers.
- Deploy Containers.
If you've got questions about the platform or need some help getting started, our team is more than happy to assist. Whether you're new to containers or just new to Cycle, reach out to us via livechat by clicking the blue circle in the bottom right corner. Join our Slack channel, and get help from the dev team or other members of the community, and check out our Roadmap to see what's planned for the future!