docker compose sample
✓ Published0🌍 Public
66ewis
Last edited May 28, 2020
Created on May 28, 2020
This example shows a multi-service Docker Compose setup for local development, defining a main application service along with MySQL and Adminer containers. The main service builds from a local context with a development target, mounts the current directory as a volume while preserving the container’s node_modules, exposes port 9229 for debugging, runs `npm run start:dev`, and loads environment variables from a `.env` file. The MySQL service uses the `mysql:latest` image with a native password authentication plugin, sets a root password, and persists data in a named volume. Adminer provides a web-based database client on port 8080, with all services connected via a custom `webnet` network.
AI-generated description