Skip to content

Commit

Permalink
Created a folder for basic and advanced deployment of the ETL pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmanik committed Aug 2, 2024
1 parent 26fafb5 commit 015f41b
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
scripts/data/combined_data_cleaned.csv
scripts/data/combined_data.csv
# ignore the data files
01-basic-deployment/scripts/data/combined_data_cleaned.csv
01-basic-deployment/scripts/data/combined_data.csv

scripts/extract_done
scripts/transform_done
# ignore the done files
01-basic-deployment/scripts/extract_done
01-basic-deployment/scripts/transform_done
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions docker-guides/docker-compose.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Cleaning Up Docker Deployments

To clean up after using `docker-compose up`, you can use the following commands to stop and remove containers, networks, volumes, and images created by Docker Compose:

## Stop and Remove Containers
This command will stop and remove all containers defined in the `docker-compose.yml` file.

```sh
docker-compose down
```

## Remove Containers, Networks, Volumes, and Images
This command will remove containers, networks, and images created by docker-compose up. The -v flag is used to remove named volumes declared in the volumes section of the Compose file and anonymous volumes attached to containers.

```sh
docker-compose down --volumes --remove-orphans
```
## Remove All Unused Docker Data

If you want to remove all unused Docker data, including stopped containers, networks, images, and build cache, use the following command:

```sh
docker system prune -a --volumes
```

Note:
- -a will also remove all unused images not just dangling ones.
- --volumes will remove all unused volumes.

0 comments on commit 015f41b

Please sign in to comment.