- docker-ce: see here how to install and set it up on your environment;
- docker-compose: see here how to install and set it up on your environment;
cassandraversion3;glowrootGlowroot Central version0.13.6;postgresPostgreSQL version11.6;redisRedis version4.0.8;redis-commanderredis commander versionlatest;
$ docker-compose up -dIn case you don't want or don't need all the containers in the composer you can create just the ones you want to. To see how to do that check here. One example would look like this:
$ docker-compose up -d postgresThis will create only postgres container and not the others like cassandra and glowroot.
-
cassandra:- internal port
7000listen from the host at7000; - internal port
9022listen from the host at9042;
- internal port
-
glowroot:- internal port
4000listen from the host at4000; - internal port
8181listen from the host at8181;
- internal port
-
postgres:- internal port
5432listen from the host at5432;
- internal port
-
redis:- internal port
6379listen from the host at6379;
- internal port
-
redis-commander:- internal port
8081listen from the host at4567;
- internal port
There are also some aliases to help use tools from the containers. Check them out here and some exemples below.
aws cli:
First create the alias in the .bashrc, .zshrc, or whatever other startup script file you're using. You can do this like that:
brunosilva@brunos-macbook ~ % echo "docker run --rm -it -v ~/.aws:/root/.aws -v $(pwd):/aws amazon/aws-cli" >> ~/.zhrcbrunosilva@brunos-macbook ~ % aws s3 ls
2019-03-25 20:21:46 ...
2020-09-16 21:36:54 ...
2018-02-07 12:31:05 ...
2019-02-26 21:25:05 ...
2017-07-19 21:49:55 ...
2017-07-19 21:49:30 ...
2019-06-17 23:39:27 ...
...Check here the complete reference.
docker:
First create the alias in the .bashrc, .zshrc, or whatever other startup script file you're using. You can do this like that:
brunosilva@brunos-macbook ~ % echo "docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}'" >> ~/.zhrcThen you can use the alias like this:
brunosilva@brunos-macbook ~ % docker-container-ip postgres
172.19.0.3postgres:
First create the alias in the .bashrc, .zshrc or whatever other startup script file you're using. You can do this like that:
brunosilva@brunos-macbook ~ % echo "alias psql='docker exec -it postgres psql -U postgres'" >> ~/.zhrcThen you can use the alias like this:
brunosilva@brunos-macbook ~ % psql
psql (11.6 (Debian 11.6-1.pgdg90+1))
Type "help" for help.
postgres=#