{"id":14974006,"url":"https://github.com/sinuoslabs/nocker","last_synced_at":"2026-03-02T02:40:36.924Z","repository":{"id":37027401,"uuid":"326719660","full_name":"sinuoslabs/nocker","owner":"sinuoslabs","description":"NodeJs docker manager","archived":false,"fork":false,"pushed_at":"2022-08-12T20:03:29.000Z","size":7,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-20T02:31:01.109Z","etag":null,"topics":["docker","docker-compose","eventstore","mongo","mysql","pgsql","redis"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/sinuoslabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-04T15:03:30.000Z","updated_at":"2025-02-14T10:51:39.000Z","dependencies_parsed_at":"2022-08-19T01:40:24.201Z","dependency_job_id":null,"html_url":"https://github.com/sinuoslabs/nocker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sinuoslabs/nocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinuoslabs%2Fnocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinuoslabs%2Fnocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinuoslabs%2Fnocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinuoslabs%2Fnocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinuoslabs","download_url":"https://codeload.github.com/sinuoslabs/nocker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinuoslabs%2Fnocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29991295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker","docker-compose","eventstore","mongo","mysql","pgsql","redis"],"created_at":"2024-09-24T13:49:48.869Z","updated_at":"2026-03-02T02:40:36.889Z","avatar_url":"https://github.com/sinuoslabs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nocker\n\n## Introduction\n\nNocker is a lightweight command line interface that allows interaction with the default Docker development environment. Nocker is an excellent starting point to create a NodeJS application using **Postgres**, **MySQL**, **Redis**, **Memcached** and **EventStore** without the need for prior Docker experience.\n\nThe nocker script provides a CLI with convenient methods to interact with the Docker containers defined by the `docker-compose.yml` file.\n\n\n## Installation \u0026 Setup\n\n### Global install\n\n### Intstall nocker into existing application\n\n## Start \u0026 Stop nocker\n\nNocker's docker-compose.yml file defines a Docker variety of containers that work together to help you build Laravel applications. Each of these containers is an entry within the services configuration of your docker-compose.yml file. The **main** container is the primary application container that will be serving your application.\n\nBefore starting Nocker, you should ensure that no other web servers or databases are running on your local computer. To start all of the Docker containers defined in your application's docker-compose.yml file, you should execute the up command:\n\n```node\nnocker up\n```\n\nTo start all of the Docker containers in the background, you may start Nocker in \"detached\" mode:\n\n```node\nnocker up -d\n```\n\nOnce the application's containers have been started, you may access the project in your web browser at: http://localhost.\n\nTo stop all of the containers, you may simply press Control + C to stop the container's execution. Or, if the containers are running in the background, you may use the down command:\n\n```node\nnocker down\n```\n\n## Executing Commands\n\nWhen using Laravel Nocker, your application is executing within a Docker container and is isolated from your local computer. However, Nocker provides a convenient way to run various commands against your application such as arbitrary Node / NPM commands.\n\nWhen reading documentation, you will often see references to [Node / NPM commands](#executing-npm-commands) that do not reference Nocker. Those examples assume that these tools are installed on your local computer. If you are using Nocker for your local Laravel development environment, you should execute those commands using Nocker:\n\n```node\n# Running NPM commands locally...\nnpm install\n\n# Running NPM within project contains nocker...\nnocker npm install\n```\n\n### Executing NPM commands\n\nNode commands may be executed using the node command while NPM commands may be executed using the npm command:\n\n```node\nnocker node --version\n\nnocker npm run prod\n```\n\n## Interacting With Databases\n\n### MySQL\n\nAs you may have noticed, your application's docker-compose.yml file contains an entry for a MySQL container. This container uses a Docker volume so that the data stored in your database is persisted even when stopping and restarting your containers. In addition, when the MySQL container is starting, it will ensure a database exists whose name matches the value of your DB_DATABASE environment variable.\n\nOnce you have started your containers, you may connect to the MySQL instance within your application by setting your DB_HOST environment variable within your application's .env file to mysql.\n\nTo connect to your application's MySQL database from your local machine, you may use a graphical database management application such as TablePlus. By default, the MySQL database is accessible at localhost port 3306.\n\n### Postgres\n\nAs you may have noticed, your application's docker-compose.yml file contains an entry for a Postgres container. This container uses a Docker volume so that the data stored in your database is persisted even when stopping and restarting your containers. In addition, when the MySQL container is starting, it will ensure a database exists whose name matches the value of your DB_DATABASE environment variable.\n\nOnce you have started your containers, you may connect to the Postgres instance within your application by setting your DB_HOST environment variable within your application's .env file to postgres.\n\nTo connect to your application's Postgres database from your local machine, you may use a graphical database management application such as TablePlus. By default, the Postgres database is accessible at localhost port 3306.\n\n### Redis\n\nYour application's docker-compose.yml file also contains an entry for a Redis container. This container uses a Docker volume so that the data stored in your Redis data is persisted even when stopping and restarting your containers. Once you have started your containers, you may connect to the Redis instance within your application by setting your REDIS_HOST environment variable within your application's .env file to redis.\n\nTo connect to your application's Redis database from your local machine, you may use a graphical database management application such as TablePlus. By default, the Redis database is accessible at localhost port 6379.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinuoslabs%2Fnocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinuoslabs%2Fnocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinuoslabs%2Fnocker/lists"}