Skip to content

Commit

Permalink
Add information about removing volumes/updating images
Browse files Browse the repository at this point in the history
- Add also the commands to the scripts
  • Loading branch information
Uxio0 committed Jul 5, 2024
1 parent e4ba811 commit 88ffba4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/running_locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
- [Brief Docker Crash Course](docker_cheatsheet.md)

**Important Note:** If you followed the guide some time ago, it's recommended to clean the existing data:
- Remove containers: `docker-compose down -v`.
- Remove docker volumes: `docker-compose rm -f -v`.
- Remove `./data` folder, that holds the database.
- Download last versions of the images: `docker-compose pull`

## Step 1: setup your `.env`

Expand Down Expand Up @@ -39,6 +41,8 @@ sh run_locally.sh
Start Docker containers:

```bash
docker compose pull
docker compose down -v
docker compose up
```

Expand Down
4 changes: 3 additions & 1 deletion scripts/run_locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
set -e

echo "==> $(date +%H:%M:%S) ==> Starting up environment containers..."
docker compose up -d \
docker compose pull \
&& docker compose down -v \
&& docker compose up -d \
&& echo "==> $(date +%H:%M:%S) ==> Creating super-user for Safe Config Service... (may take a while)" \
&& docker compose exec cfg-web python src/manage.py createsuperuser \
&& echo "==> $(date +%H:%M:%S) ==> Creating super-user for Safe Transaction Service... (may take a while)" \
Expand Down

0 comments on commit 88ffba4

Please sign in to comment.