Skip to content

Commit

Permalink
Simplifying docker compose scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjaszewski committed Sep 7, 2024
1 parent 53927a2 commit 037cf0a
Show file tree
Hide file tree
Showing 15 changed files with 30 additions and 36 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions scripts/backend-only-restart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Stop and remove containers, networks, and volumes
docker compose -f docker-compose.backend-only.yml down -v

docker compose -f docker-compose.backend-only.yml up --force-recreate --build -d
3 changes: 3 additions & 0 deletions scripts/backend-only-start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker compose -f docker-compose.backend-only.yml up --force-recreate --build -d
9 changes: 0 additions & 9 deletions scripts/backend-restart.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/backend-start.sh

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/clean-containers.sh

This file was deleted.

9 changes: 9 additions & 0 deletions scripts/cleanup-all-containers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

# Stop and remove containers, networks, and volumes
docker compose -f docker-compose.fullstack.yml down -v
docker compose -f docker-compose.frontend-dev.yml down -v
docker compose -f docker-compose.backend-only.yml down -v

# Optionally, remove dangling volumes not associated with any container
docker volume prune -f
3 changes: 3 additions & 0 deletions scripts/frontend-dev-mode-start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker compose -f ./docker-compose.frontend-dev-mode.yml up --force-recreate --build -d
6 changes: 6 additions & 0 deletions scripts/fullstack-restart.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Stop and remove containers, networks, and volumes
docker compose -f docker-compose.fullstack.yml down -v

docker compose -f docker-compose.fullstack.yml up --force-recreate --build -d
3 changes: 3 additions & 0 deletions scripts/fullstack-start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker compose -f docker-compose.fullstack.yml up --force-recreate --build -d
9 changes: 0 additions & 9 deletions scripts/restart-containers.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/start-containers.sh

This file was deleted.

3 changes: 0 additions & 3 deletions scripts/start-frontend-test-containers.sh

This file was deleted.

0 comments on commit 037cf0a

Please sign in to comment.