https://github.com/danielm/docker-compose-makefiles
https://github.com/danielm/docker-compose-makefiles
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danielm/docker-compose-makefiles
- Owner: danielm
- License: mit
- Created: 2023-05-04T14:58:20.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-04T21:26:02.000Z (about 3 years ago)
- Last Synced: 2025-01-28T02:22:28.807Z (over 1 year ago)
- Language: Makefile
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Example on using Makefiles to build Dockerized projects
## Facts
- Have 2 environments
- Use `make` to shorten docker compose commands
- Have an `.env` files to configure the project
## Disclaimer
Using `NodeJS` as an example project to demonstrate the building process; so the `packages-*` and `.js` can be completely ignored and removed. Also check what the `Dockerfile` does.
## Install
- Clone this repo
- Create `.env` file from the `env.example` and tweak it as needed
## Commands
All are ran using the `environment` set in the `.env file`
- `make build`
- `make up`
- `make down`
- `make logs`
- `make push`
- `make release`
## ToDo
- Publish to registry/hub