- 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;
cassandra
version3
;glowroot
Glowroot Central version0.13.6
;postgres
PostgreSQL version11.6
;redis
Redis version4.0.8
;redis-commander
redis commander versionlatest
;
$ docker-compose up -d
In 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 postgres
This will create only postgres container and not the others like cassandra and glowroot.
-
cassandra
:- internal port
7000
listen from the host at7000
; - internal port
9022
listen from the host at9042
;
- internal port
-
glowroot
:- internal port
4000
listen from the host at4000
; - internal port
8181
listen from the host at8181
;
- internal port
-
postgres
:- internal port
5432
listen from the host at5432
;
- internal port
-
redis
:- internal port
6379
listen from the host at6379
;
- internal port
-
redis-commander
:- internal port
8081
listen 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" >> ~/.zhrc
brunosilva@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}}'" >> ~/.zhrc
Then you can use the alias like this:
brunosilva@brunos-macbook ~ % docker-container-ip postgres
172.19.0.3
postgres
:
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'" >> ~/.zhrc
Then 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=#