Skip to content

Commit

Permalink
docker compose scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jul 26, 2023
1 parent 61c57a0 commit c3a344e
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
coverage/
build/
go/
3 changes: 3 additions & 0 deletions go/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
docker compose build --build-arg VITE_APP_GIT_SHA=$(git show -s --format=%H) --build-arg VITE_APP_BUILD_TIMESTAMP=$(git show -s --format=%cI)
2 changes: 1 addition & 1 deletion docker-compose.yml → go/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.2'
services:
connect:
image: connect
build: .
build: ..
ports:
- "3000:80"
environment:
Expand Down
3 changes: 3 additions & 0 deletions go/logs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
docker compose logs -f
3 changes: 3 additions & 0 deletions go/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
docker compose up -d
3 changes: 3 additions & 0 deletions go/stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
docker compose down

0 comments on commit c3a344e

Please sign in to comment.