https://github.com/allyndawn/hellocompose
Multiple docker containers managed by Docker Compose
https://github.com/allyndawn/hellocompose
docker docker-compose elasticmq
Last synced: 3 months ago
JSON representation
Multiple docker containers managed by Docker Compose
- Host: GitHub
- URL: https://github.com/allyndawn/hellocompose
- Owner: allyndawn
- Created: 2022-01-14T16:33:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-03T05:32:27.000Z (over 3 years ago)
- Last Synced: 2025-01-06T04:12:55.066Z (4 months ago)
- Topics: docker, docker-compose, elasticmq
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hellocompose
Multiple docker containers managed by Docker Compose## Related
- [Connect 2 compose images in docker | Docker](https://www.youtube.com/watch?v=8jVnEZPNom0)
## Notes
- Initially, I had to set up the repo
`python3 -m venv .venv`
- And then, looks like on each start up
`source .venv/bin/activate`
`python -m pip install --upgrade pip`- And then create Dockerfiles for the ElasticMQ container, ...
- Use the following to up and build:
`docker-compose up --build`
- Which will display something like:
```
elasticmq_1 | 22:07:30.046 [main] INFO org.elasticmq.server.Main$ - === ElasticMQ server (0.15.8) started in 1727 ms ===
```- You can issue the following command to check on the containers from the root of the repo:
```
(.venv) allendavidsnook@Lamia hellocompose % docker-compose ps
Name Command State Ports
----------------------------------------------------------------------------
hellocompose_elasticmq_1 java -Djava.net.preferIPv4 ... Up 9324/tcp
```- And the following to tear it all down:
```
(.venv) allendavidsnook@Lamia hellocompose % docker-compose down
Stopping hellocompose_elasticmq_1 ... done
Removing hellocompose_elasticmq_1 ... done
Removing network hellocompose_default
```- Remember that things like connection strings should reference the name of the container for the resource.