Skip to content

Commit 88ffba4

Browse files
committedJul 5, 2024
Add information about removing volumes/updating images
- Add also the commands to the scripts
1 parent e4ba811 commit 88ffba4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎docs/running_locally.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
- [Brief Docker Crash Course](docker_cheatsheet.md)
77

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

1214
## Step 1: setup your `.env`
1315

@@ -39,6 +41,8 @@ sh run_locally.sh
3941
Start Docker containers:
4042

4143
```bash
44+
docker compose pull
45+
docker compose down -v
4246
docker compose up
4347
```
4448

‎scripts/run_locally.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
set -e
44

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

0 commit comments

Comments
 (0)
Please sign in to comment.