Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 924 Bytes

docker_cheatsheet.md

File metadata and controls

40 lines (29 loc) · 924 Bytes

Docker crash course

Build the entire setup

Building and running the whole setup can be done with the following commands:

docker compose up

Just to build, once you've pulled the images

docker compose build --force-rm

Bash access to web container

Accessing bash in your web containers can be achieved by:

docker compose exec -it cfg-web bash
docker compose exec -it txs-web bash

Ctrl+d will end interactive mode.

Starting redis-cli connected to a container

Accessing redis-cli in either redis can be achieved like so"

docker compose exec -it cgw-redis redis-cli
docker compose exec -it txs-redis redis-cli

Starting psql connected to a container

Accessing postgres. The Safe Config and Safe transaction services use the different instance

docker compose exec -it cfg-db psql -U postgres
docker compose exec -it txs-db psql -U postgres