I have a few containers that are expected to run together. Do I need to create a tiny github repository for each (seems wasteful and inconvenient), or can I use the same github repository as a source for an automated build of multiple containers?
If the containers are expected to be run together then use docker compose to build and run them. The Docker file associated with each container can then be kept in a sub directory.
├── docker-compose.yml
├── one
│ └── Dockerfile
└── two
└── Dockerfile
web1:
build: one
ports:
- 8080
web2:
build: two
ports:
- 8080
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With