Date: 2022-09-28
Author: MvS
keywords: software-architecture, docker-compose
Use as a template for a docker-compose based image builds and deployments using a
Makefile and an .env file for customization.
- Copy
.env.distto.env(no adjustments required / for future use with credentials) - Run
make run-composeand let the container for the simple stack come online. - Use CTRL+C to shut down the stack
- Invoke
make cleanandmake clean stack=extended, respectively to remove the stack
Using compose:
docker-compose exec <container-name> env SAMPLEPAR="testing" bash
Using docker:
docker exec -it <container-name> bash