Share feedback
Answers are generated based on the documentation.

Lab: Container-Supported Development

Use containers to run the services your app depends on — databases, caches, message queues — without installing anything locally. This lab walks through running PostgreSQL in a container, writing a compose.yaml your whole team can share, and adding a pgAdmin visualizer to the dev stack.

Launch the lab

  1. Start the labspace:

    $ docker compose -f oci://dockersamples/labspace-container-supported-development up -d
    
  2. Open your browser to http://localhost:3030.

What you'll learn

By the end of this Labspace, you will have completed the following:

  • Run a PostgreSQL database in a container with no local installation
  • Use bind mounts to seed a database with schema and initial data at startup
  • Write a compose.yaml that codifies the entire dev stack for the team
  • Add a pgAdmin container to visualize and inspect the database
  • Understand how containerized dev stacks reduce onboarding time and environment drift

Modules

#ModuleDescription
1IntroductionMeet the sample app and understand the container-supported development approach
2Running a Containerized DatabaseStart PostgreSQL, connect the app, and seed the database using bind mounts
3Making Life Easier with ComposeReplace docker run commands with a shared compose.yaml
4Adding Dev ToolsAdd pgAdmin to the Compose stack for database visualization
5RecapReview key takeaways and explore related guides