{"id":26495994,"url":"https://github.com/landregistry/common-dev-env","last_synced_at":"2026-03-06T12:04:44.375Z","repository":{"id":34735924,"uuid":"144867021","full_name":"LandRegistry/common-dev-env","owner":"LandRegistry","description":"A generic Docker/Docker Compose-based development environment with some useful hooks to get apps up and running faster","archived":false,"fork":false,"pushed_at":"2024-05-08T14:37:00.000Z","size":592,"stargazers_count":26,"open_issues_count":8,"forks_count":35,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-05-13T04:43:21.561Z","etag":null,"topics":["containers","db2","developer-tools","development-environment","docker","docker-compose","logstash","nginx","postgres","postgresql","rabbitmq","redis","wiremock"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LandRegistry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-15T14:56:47.000Z","updated_at":"2024-06-12T12:07:54.967Z","dependencies_parsed_at":"2023-12-14T17:27:04.054Z","dependency_job_id":"0d7c3f45-8b5a-42d6-9e79-775d975b6599","html_url":"https://github.com/LandRegistry/common-dev-env","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LandRegistry%2Fcommon-dev-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LandRegistry%2Fcommon-dev-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LandRegistry%2Fcommon-dev-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LandRegistry%2Fcommon-dev-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LandRegistry","download_url":"https://codeload.github.com/LandRegistry/common-dev-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244600725,"owners_count":20479307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containers","db2","developer-tools","development-environment","docker","docker-compose","logstash","nginx","postgres","postgresql","rabbitmq","redis","wiremock"],"created_at":"2025-03-20T11:20:13.629Z","updated_at":"2026-03-06T12:04:39.340Z","avatar_url":"https://github.com/LandRegistry.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Common Development Environment\n\nThis repository contains the code for a development environment that can be used across teams and projects. It is designed to allow collections of applications to be loaded from a separate configuration repository, and maximising consistency between them.\n\nIt provides several hooks for applications to take advantage of, including:\n\n* Docker container creation and launching via docker-compose\n* Automatic creation of commodity systems such as Postgres or Elasticsearch (with further hooks to allow for initial provisoning such as running SQL, Alembic DB upgrades or Elasticsearch index creation)\n\n## Getting started\n\n### Prerequisites\n\n* **Docker and Docker Compose**. Exactly what toolset you use depends on your OS and personal preferences, but recommended are:\n  * [Docker For Mac](https://docs.docker.com/docker-for-mac/)\n  * [Docker for Windows 10](https://docs.docker.com/docker-for-windows/) (See [the wiki](https://github.com/LandRegistry/common-dev-env/wiki/Windows-setup) for more information on getting a working Windows environment set up)\n  * [Docker CE for Linux](https://docs.docker.com/install/linux/docker-ce/ubuntu/)\n* **Git**\n* **Ruby 2.5+**\n\n### Git/SSH\n\nYou must ensure the shell you are starting the dev-env from can access all the necessary Git repositories - namely the config repo and the application repos it specifies. If they are to be accessed via SSH, [this wiki page](https://github.com/LandRegistry/common-dev-env/wiki/Git---SSH-setup) has some proven techniques for generating keys and making them available to the shell.\n\n### Controlling the dev-env\n\nTo begin:\n\n1. Start Docker.\n2. Using Git, clone this repository into a directory of your choice.\n3. Open a terminal in that directory, and run `source run.sh up`\n4. If this is the first time you are launching the machine you will be prompted for the url of a configuration repository (both SSH or HTTP(S) Git formats will work). Paste it in and press enter.\n\n**TIP:** You can add a # onto the end of the configuration repository location followed by a branch, tag or commit you want to check out, if the default branch is not good enough.\n\nOther `run.sh` parameters are:\n\n* `halt` - stops all containers\n* `reload` - stops all containers then rebuilds and restarts them (including running any commodity fragments)\n* `destroy` - stops/removes all containers, removes all built images (i.e. leaving any pulled from Docker Hub) and resets all dev-env configuration files.\n* `repair` - sets the Docker-compose configuration to use the fragments from applications in _this_ dev-env instance (in case you are switching between several or are in a different terminal window to the one you ran `up` in)\n* `quickup` and `quickreload` - as per `up` and `reload` except they do not update anything from git (apps or config), rebuild Docker images or provision any commodity fragments.\n\n#### Extra functionality\n\n* `--nopull` (or `-n`) can go after `up` or `reload` - e.g. `source run.sh up -n`. This will stop images FROMed in Dockerfiles being checked for updates if a copy already exists on the system. Use to avoid Docker Hub pull rate limits.\n\n## Usage guide\n\n### Configuration Repository\n\nThis is a Git repository that must contain a single file  -\n`configuration.yml`. The configuration file has an `applications` key that contains a list of the applications that will be running in the dev-env, each specifying the URL of their Git repository (the `repo` key) plus which branch/tag/commit should be initially checked out (the `ref` key), and any optional Compose fragment variant name to use (the `variant` key) if appropriate.\n\nThe name of the application should match the repository name so that things dependent on the directory structure like volume mappings in the app's compose-fragment.yml will work correctly.\n\nAny Compose fragment variant name, if defined, should also match with a variant Compose file in the repository, in the format `compose-fragment.xyz.yml` (where \"xyz\" is the variant name).\n\nThe application repositories will be pulled and updated on each `up` or `reload`, _unless_ the current checked out branch does not match the one in the configuration. This allows you to create and work in feature branches while remaining in full control of updates and merges.\n\nIf you are creating a new app that doesn't have a remote Git repository to clone from yet, you can manually put a directory into `/apps/` and add it to the configuration with the `repo` key set to `none` and no `ref` key.\n\nThis file can also optionally contain a `post-up-message` key that provides a message to be displayed after the dev-env has finished starting all applications.\n\n[Example](snippets/configuration.yml)\n\n### Application support\n\nFor an application repository to leverage the full power of the dev-env...\n\nDocker containers are used to run all apps. So some files are needed to support that.\n\n#### Fragments\n\n##### `/fragments/compose-fragment.yml`\n\nThis is used by the environment to construct an application container and then launch it. Standard [Compose Spec](https://github.com/compose-spec/compose-spec/blob/master/spec.md) structure applies - but some recommendations are:\n\n* Container name and service name should match\n* Any ports that need to be accessed from the host machine (as opposed to from other containers) should be mapped\n* A `volumes` entry should map the path of the app folder to wherever the image expects source files to be (if they are to be accessed dynamically, and not copied in at image build time)\n* If the provided log collator is to be used, then a syslog logging driver needs to be present, forwarding to logstash:25826.\n* If you wish to run the container as the host user so you have full access to any files created by the container (this is only a problem on Linux and WSL), environment variables `OUTSIDE_UID` and `OUTSIDE_GID` are provided for use in the fragment as build args (which can then be used in the `Dockerfile` to create a matching user and set them as the container-executor).\n\nAlthough generally an application should only have itself in its compose fragment, there is no reason why other containers based on other Docker images cannot also be listed in this file, if they are not provided already by the dev-env.\n\nNote that when including directives such as a Dockerfile build location or host volume mapping for the source code, the Compose context root `.` is considered to be the dev-env's /apps/ folder, not the location of the fragment. Ensure relative paths are set accordingly.\n\n##### `/fragments/compose-fragment.\u003cvariant\u003e.yml`\n\nOptional variants of `compose-fragment.yml` designed for specific use cases, such as offering slimmed-down or extended configurations. The syntax for a variant compose fragment is the same as that for a default unversioned compose fragment (see above).\n\nReplace `\u003cvariant\u003e` with the specific name of the variant configuration required, such as `slim` or `full`.\n\nA default `compose-fragment.yml` is still required in addition to any optional variants.\n\n[Example](snippets/compose-fragment.yml)\n\n##### `/fragments/docker-compose-fragment.yml` and `/fragments/docker-compose-fragment.3.7.yml`\n\nOptional variants of `compose-fragment.yml` with a version of `2` and `3.7` respectively. Support for these is still present for backwards compatibility with older apps.The development environment will select the highest compose file version supplied by _all_ applications in the environment (2 --\u003e 3.7 --\u003e unversioned).\n\nIf the environment cannot identify a universal compose file version, then provisioning will fail.\n\nCompose fragment variants are unsupported when used in conjunction with older compose fragment versions.\n\n[2 Example](snippets/docker-compose-fragment.yml)\n\n[3.7 Example](snippets/docker-compose-fragment.3.7.yml)\n\n#### Other\n\n##### `/Dockerfile`\n\nThis is a file that defines the application's Docker image. The Compose fragment may point to this file. Extend an existing image and install/set whatever is needed to ensure that containers created from the image will run. See the [Dockerfile reference](https://docs.docker.com/engine/reference/builder/) for more information.\n\n[Example - Python/Flask](snippets/flask_Dockerfile)\n\n[Example - Java](snippets/java_Dockerfile)\n\n##### `/configuration.yml`\n\nThis file specifies which commodities the dev-env should create and launch for the application to use. If the commodity must be started before your application, ensure that it is also present in the appropriate section of the `docker-compose-fragment` file (e.g. `depends_on`).\n\nThe list of allowable commodity values is:\n\n1. postgres-13\n2. postgres-17\n3. db2_community\n4. elasticsearch5\n5. elasticsearch7\n6. nginx\n7. rabbitmq\n8. redis\n9. swagger\n10. wiremock\n11. squid\n12. auth\n13. cadence\n14. cadence-web\n15. activemq\n16. ibmmq\n17. localstack\n\nThe file may optionally also indicate that one or more services are resource intensive (\"expensive\") when starting up. The dev env will start those containers seperately - 3 at a time - and wait until each are declared healthy (or crash and get restarted 10 times) before starting any more.\n\nThis requires a healthcheck command specified here or in the Dockerfile/docker-compose-fragment (in which case just use 'docker' in this file).\n\nIf one of these expensive services prefers another one to be considered \"healthy\" before a startup attempt is made (such as a database, to ensure immediate connectivity and no expensive restarts) then the dependent service can be specified here, with a healthcheck command following the same rules as above.\n\n[Example](snippets/app_configuration.yml)\n\n#### Commodities\n\nIndividual commodities may require further files in order to set them up correctly even after being specified in the application's `configuration.yml`, these are detailed below.\n\nNote that unless specified, any fragment files will only be run once. This is controlled by a generated `.commodities.yml` file in the root of the this repository, which you can change to allow the files to be read again - useful if you've had to delete and recreate a commodity container.\n\n##### PostgreSQL\n\n**`/fragments/postgres-init-fragment.sql`**\n\nThis file contains any one-off SQL to run in Postgres - at the minimum it will normally be creating a database and an application-specific user.\n\n[Example](snippets/postgres-init-fragment.sql)\n\nIf you want to spatially enable your database see the following example:\n\n[Example - Spatial](snippets/spatial_postgres-init-fragment.sql)\n\nThe default Postgres port 5432 will be available for connections from other containers, hostname `postgres-13` or `postgres-17`. Port `5434` (for PG13) or `5435` (for PG17) is exposed for external connections from the host.\n\n**`/manage.py`**\n\nThis is a standard Alembic management file - if it exists, then a database migration will be run on every `up` or `reload`. This functionality can be enabled by setting the key `perform_alembic_migration` to `true` in `configuration.yml`. It is recommended however that you do your own migration during app startup.\n\n##### DB2 Community\n\nNote that DB2 Community is exposed on 30002/35002 to avoid port clashes.\n\n**`/fragments/db2-community-init-fragment.sql`**\n\nThis file contains any one-off SQL to run in DB2 - at the minimum it will normally be creating a database.\n\n[Example](snippets/db2-community-init-fragment.sql)\n\n##### ElasticSearch 5\n\n**`/fragments/elasticsearch5-fragment.sh`**\n\nThis file is a shell script that contains curl commands to do any setup the app needs in elasticsearch - creating indexes etc. It will be passed a single argument, the host and port, which can be accessed in the script using `$1`.\n\nThe ports 9300 and 9302 are exposed on the host.\n\n[Example](snippets/elasticsearch5-fragment.sh)\n\n##### ElasticSearch 7\n\nThe ports 9207 and 9307 are exposed on the host.\n\nIf the ElasticSearch 7 container is returning the follow error log message:\n\n`max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]`\n\nRun the following command in a terminal to set the system's max map count.\n\n```bash\nsysctl -w vm.max_map_count=262144\n```\n\n##### Nginx\n\n**`/fragments/nginx-fragment.conf`**\n\nThis file forms part of an NGINX configration file. It will be merged into the server directive of the main configuration file.\n\nImportant - if your app is adding itself as a proxied location{} behind NGINX, NGINX must start AFTER your app, otherwise it will error with a host not found. So your app's compose-fragment.yml must actually specify NGINX as a service and set the depends_on variable with your app's name.\n\nCompose will automatically merge this with the dev-env's own NGINX fragment. See the end of the [example Compose fragment](snippets/compose-fragment.yml) for the exact code.\n\n[Example](snippets/nginx-fragment.conf)\n\n##### Wiremock\n\n**`/fragments/wiremock-fragment.json`**\n\nThis is a file that contains stub mappings that Wiremock will pick up and use, as an alternative to dynamic programming via its API. See the official Wiremock documentation for help on the structure and contents of the file.\n\n[Example](snippets/wiremock-fragment.json)\n\n**`/fragments/wiremock/`**\n\nThis is a directory that can contain multiple stub mappings files that Wiremock will pick up and use. The files should all be in the same format as the example above. If such a wiremock directory exists, it will take precedence over any `wiremock-fragment.json` file.\n\n##### RabbitMQ\n\nThere are no fragments needed when using this. The Management Console will be available on \u003chttp://localhost:15672\u003e (guest/guest).\n\nRabbit is available over port 5672 and TLS on port 5671.\n\nTLS presents a self signed cert. If verification is needed a copy of the ca certificate is [here](scripts/docker/rabbitmq/certs/ca_certificate.crt). The host has been set to `rabbitmq` for host verification in most common libraries, although will only work within the docker network.\n\nMTLS is not enabled, although a [client certificate pem](scripts/docker/rabbitmq/certs/client_certificate.pem) and [client key pem](scripts/docker/rabbitmq/certs/client_key.pem) have been generated as part of the certificate set for potential future use.\n\nCurrently, only the `rabbitmq_management`, `rabbitmq_consistent_hash_exchange`, `rabbitmq_shovel`, `rabbitmq_shovel_management` and `rabbitmq_stream` plugins are enabled.\n\n##### ActiveMQ\n\nThere are no fragments needed when using this. The Management Console will be available on \u003chttp://localhost:8161\u003e (admin/admin).\n\n##### IBM MQ\n\nThere are no fragments needed when using this. The Web Console will be available on \u003chttps://localhost:9443\u003e (admin/passw0rd) and MQ itself on port 1414. To access IBM MQ through a service use the username `app` with no password.\n\n##### Redis\n\nThere are no fragments needed when using this. Redis will be available at \u003chttp://localhost:16379\u003e on the host and at \u003chttp://redis:6379\u003e inside the Docker network.\n\nYou can monitor Redis activity using the CLI:\n\n```shell\nbashin redis\nredis-cli monitor\n```\n\n##### Squid\n\nThere are no fragments needed when using this. An HTTP proxy will be made available to all containers at runtime, at hostname `squid` and port 3128. It will be available on the host on port 30128.\n\nIt also supports HTTPS, however you will need to ensure the self signed [root CA](https://github.com/LandRegistry/docker-base-images/blob/master/squid/devenv-squid-rootca.der?raw=true) is loaded into wherever it needs to go, depending on what is using the proxy (Java cacerts etc). This is best to do in your Dockerfile, alongside setting any variables needed to point to use the proxy itself.\n\n##### Auth\n\nThe `auth` commodity can be used by applications requiring authentication functionality and adds two containers: `openldap` and `keycloak`.\n\n###### OpenLDAP\n\nThe OpenLDAP container has been customised with a schema similar to that present in Microsoft's Active Directory and the base objects required to use it for authentication have been added. Use the following configuration to connect your application:\n\nFrom within a Docker container:\n\n* Host: openldap\n* Port: 389 (the default LDAP port)\n\nFrom the host system:\n\n* Host: localhost\n* Port: 1389\n\nOther parameters:\n\n* Base DN (AKA search base, search path, etc.): `dc=dev,dc=domain`\n* Bind DN (user account for administration): `cn=admin,dc=dev,dc=domain`\n* Admin password: `admin`\n\n**`/fragments/*.ldif`**\n\nNo users are added to the LDAP database by default. To add users, groups, etc, appropriate for your application, add LDIF files to your application's fragments. Any files in the fragments directory with a `.ldif` extension will be added to the LDAP database. Entries you add must fall under the `dc=dev,dc=domain` base DN.\n\n[Example](snippets/ldap-entries.ldif)\n\n###### Keycloak\n\nKeycloak is an identity and access management system supporting the OAuth and OpenID Connect protocols. This container is built containing a `development` realm configured to use the OpenLDAP service to perform user authentication.\n\nWhen running, Keycloak's admin console is available at \u003chttp://localhost:8180/\u003e with username `admin` and password `admin`.\n\nApplications using OAuth flows or the OpenID Connect protocol can use Keycloak for this purpose with the following configuration parameters:\n\n* Client ID: `oauth-client`\n* Authentication URL: \u003chttp://localhost:8180/auth/realms/development/protocol/openid-connect/auth\u003e  (must be resolvable by the user agent, hence we use `localhost` assuming that the user agent will be a web browser on the host system)\n* Token URL: \u003chttp://keycloak:8080/auth/realms/development/protocol/openid-connect/token\u003e (use `localhost:8180` if connecting from the host system)\n* OpenID Connect configuration endpoint: \u003chttp://keycloak:8080/auth/realms/development/.well-known/openid-configuration\u003e (use `localhost:8180` if connecting from the host system)\n\nJWT tokens issued from the `development` realm have been configured to mimic those issued by Microsoft ADFS servers. In particular, the LDAP `cn` field is mapped to the `UserName` claim in JWT tokens along with the `Office` claim mapped from the `physicalDeliveryOfficeName` in the LDAP database and the `group` claim listing the user's group memberships.\n\nA [JSON export](scripts/docker/auth/keycloak/development_realm.json) of the `development` realm is used to configure the realm. If further configuration of the realm is required, you can make changes in the admin console and re-export the realm using the procedure described in \"Exporting a realm\" [here](https://hub.docker.com/r/jboss/keycloak/#exporting-a-realm).\n\nThe exported JSON can then be merged back into this repository and reused.\n\n###### Cadence\n\nCadence is the Uber-developed HA orchestrator. It's configured to use an auto-setup mode to automatically create postgres schema and tables required for cadence functioning.\nUse the following configuration to connect your application:\n\nFrom within a Docker container:\n\n* Host: cadence\n* Port: 7933 (default cadence frontend port)\n\nFrom the host system:\n\n* Host: localhost\n* Port: 7933\n\n###### Cadence Web\n\n[Cadence Web](https://github.com/uber/cadence-web) is a web-based user interface which is used to view workflows from Cadence, see what's running, and explore and debug workflow executions. This also comes with a RESTful API that allows us query\ncadence core services.\n\n_Running Cadence web locally_\n\n* In a web browser enter \u003chttp://localhost:5004\u003e\n\n###### Localstack\n\n[Localstack](https://localstack.cloud) is a cloud stack testing and mocking framework for developing against various AWS services.\n\nA default Localstack configuration is provided with a minimal number of enabled services available (S3 only at present). Localstack does not _require_ the use of any other external configuration file (as applications can manage buckets programatically through methods such as the [AWS SDK](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/examples-s3-buckets.html)).\n\nHowever, if additional configuration (such as new buckets) are necessary before application startup, you can use a `localstack-init-fragment.sh` to perform this provisioning; an example of which is provided [here](snippets/localstack-init-fragment.sh).\n\nLocalstack is available at \u003chttp://localstack:4566\u003e within the Docker network, and \u003chttp://localhost:4566\u003e on the host.\n\n#### Other files\n\n**`/fragments/custom-provision.sh`**\n\nThis file contains anything you want - for example, initial data load. It will be executed on the host, not in the container. It is only ever run once (during the first `run.sh up`), and the file `.custom_provision.yml` is used by the dev-env to keep track of whether they have been run or not. Like `.commodities.yml`, this can be manually modified to trigger another run.\n\n**`/fragments/custom-provision-always.sh`**\n\nThis works the same way as `custom-provision.sh` except it is executed on every `run.sh up`.\n\n**`/fragments/host-fragments.yml`**\n\nThis file contains details of hosts to be forwarded on the host; if it exists then requests to the second address shall be forwarded to the first address.\n\n[Example](snippets/host-fragments.yml)\n\n**`/fragments/docker-compose-\u003cany value\u003e-fragment.yml`**\n\nThis file can be used to override the default settings for a docker container such as environment variables. It will not be loaded by default but can be applied using the add-to-docker-compose alias.\n\n## Logging\n\nAny messages that get forwarded to the logstash\\* container on TCP port 25826 will be output both in the logstash container's own stdout (so `livelogs logstash` can be used to monitor all apps) and in ./logs/log.txt.\n\n\\* Note that it is not really logstash, but we kept the container name that for backwards compatibility purposes.\n\nIf you want to make use of this functionality, ensure that `logstash` is also present in the appropriate section of the `docker-compose-fragment` file (e.g. `depends_on`).\n\n## Hints and Tips\n\n* Ensure that you give Docker enough CPU and memory to run all your apps.\n* The `run.sh destroy` command should be a last resort, as you will have to rebuild all images from scratch. Try the `fullreset` alias as that will just remove your app containers and recreate them. They are most likely to be the source of any corruption. Remember to alter `.commodities.yml` and `.custom_provision.yml` if you need to, and `run.sh reload`.\n* A memory limit of 384mb is set for intermediate containers during the image build process - but only if using Docker Compose V1 and you have Buildkit disabled in advanced Docker settings.\n\n### Useful commands\n\nIf you hate typing long commands then the commands below have been added to the dev-env for you, just type `devenv-help` after an up for a full list.\n\nIf you prefer using docker or docker-compose directly then below is list of useful commands (note: if you leave out \\\u003cname of container\\\u003e then all containers will be affected):\n\n```bash\ndocker-compose run --rm \u003cname of container\u003e \u003ccommand\u003e    -    spin up a temporary container and run a command in it\ndocker-compose rm -v -f \u003cname of container\u003e              -    remove a container\ndocker-compose down --rmi all -v --remove-orphans        -    stops and removes all containers, data, and images created by up. Don't use `--rmi all` if you want to keep the images.\ndocker-compose stop|start|restart \u003cname of container\u003e    -    (aliases: stop/start/restart) starts, stops or restarts a container (it must already be built and created)\ndocker exec -it \u003cname of container\u003e bash                 -    (alias: bashin) gets you into a bash terminal inside a running container (useful for then running psql etc)\n```\n\nFor those who get bored typing docker-compose you can use the alias dc instead. For example \"dc ps\" rather than \"docker-compose ps\".\n\n### Adding Breakpoints to Applications Running in Containers\n\nIn order to interact with breakpoints that you add to your applications you need to run the container in the foreground and attach to the container terminal. You do that like so:\n\n```bash\ndocker-compose stop \u003cname of container\u003e\ndocker-compose run --rm --service-ports \u003cname of container\u003e\n```\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available and the changelog, see the [releases page](https://github.com/LandRegistry/common-dev-env/releases).\n\n## Authors\n\n* Simon Chapman ([GitHub](https://github.com/sdchapman))\n* Ian Harvey ([GitHub](https://github.com/IWHarvey))\n\nSee also the list of [contributors](https://github.com/LandRegistry/common-dev-env/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n\n* Matthew Pease ([GitHub](https://github.com/Skablam)) - for helping create the original internal version\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flandregistry%2Fcommon-dev-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flandregistry%2Fcommon-dev-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flandregistry%2Fcommon-dev-env/lists"}