-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup docker-compose files and add descriptions (#156)
Co-authored-by: Hackerwins <[email protected]>
- Loading branch information
1 parent
2a36c07
commit b24df02
Showing
5 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Docker Compose Files | ||
|
||
[Docker Compose](https://docs.docker.com/compose/) is a tool for defining and | ||
running multi-container Docker applications. We use Docker Compose to run the | ||
applications needed during Yorkie development. | ||
|
||
When developing Yorkie, we can easily run the required dependant applications | ||
through `docker-compose` command. | ||
|
||
```bash | ||
# Run docker-compose up and Compose starts and runs apps. | ||
docker-compose -f docker/docker-compose.yml up --build -d | ||
|
||
# Shut down the apps | ||
docker-compose -f docker/docker-compose.yml down | ||
``` | ||
|
||
The docker-compose files we use are as follows: | ||
- `docker-compose.yml`: This file is used to run Yorkie in standalone mode. It | ||
only runs MongoDB, which is used to store Yorkie data. | ||
- `docker-compose-ci.yml`: This file is used to run Yorkie's integration tests. It | ||
runs MongoDB and etcd. | ||
- `docker-compose-full.yml`: This file launches all the applications needed to | ||
develop Yorkie. It also runs monitoring tools such as Prometheus and Grafana. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: '3.3' | ||
|
||
services: | ||
etcd: | ||
image: bitnami/etcd:latest | ||
container_name: etcd | ||
environment: | ||
- ALLOW_NONE_AUTHENTICATION=yes | ||
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379 | ||
ports: | ||
- 2379:2379 | ||
- 2380:2380 | ||
mongo: | ||
image: mongo:latest | ||
container_name: mongo | ||
restart: always | ||
ports: | ||
- 27017:27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters