Skip to main content

Introduction

In this guide we’ll configure a Cosmos cloud env to run docker compose commands, start a test instance of a given app and preview it via Cosmos tunnels.

Configuration

Create a new env with support for Docker: cosmos.augmentcode.com > Settings > Environments > Create an environment > Augment Cloud:
  • Name - ex: env01 (VM)
  • Base image - keep the default image
  • Repositories - you can leave unselected for now and come back to it after completing this guide
  • Runtime - make sure to select Virtual Machine (=VM)
  • Refresh - toggle on Scheduled refresh
  • Click on Create environment
Once your cloud env is created: cosmos.augmentcode.com > New session > Select Cosmos Advisor > Select the env you created above > Submit this prompt:
Note: in the thought process of the session, Cosmos Advisor created the corresponding provision and startup .sh scripts and applied them to the env: Screenshot 2026 10 19 At 11 14 48 AM The session should give you a confirmation when the env is updated: Screenshot 2026 10 19 At 11 17 07 AM

Run a test session

Test a docker compose command with a simple repo: cosmos.augmentcode.com > New session > Select the env you create above > Submit this prompt:
The session will run docker compose and offer to expose the app via a Augment authenticated url - select that option. Note on the right drawer the tunnel has been created (forwarding port 8080): Screenshot 2026 10 19 At 11 53 16 AM If you click on “temporary preview is live” or the tunnel link in the right drawer, you’ll see the app preview: Screenshot 2026 10 19 At 11 55 27 AM Congrats, your cloud env can now run docker compose! 🎉 You can run this cloud env to spin up a new test instance of your app, which is very helpful to run end2end tests as part of the code producing loop (yellow)