more updates
This commit is contained in:
parent
fce618589f
commit
633032ee32
|
|
@ -18,7 +18,7 @@ docker-compose up -d
|
|||
```
|
||||
|
||||
This will:
|
||||
- Pull the calculator image from Gitea registry
|
||||
- Build the calculator image from the local Dockerfile
|
||||
- Start the container
|
||||
- Make the calculator available at http://localhost:8080
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ version: '3.8'
|
|||
|
||||
services:
|
||||
puffin-calculator:
|
||||
image: code.letsbe.solutions/matt/puffinoffsetcalculator:latest
|
||||
build: .
|
||||
container_name: puffin-calculator
|
||||
ports:
|
||||
- "8080:80"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ version: '3.8'
|
|||
|
||||
services:
|
||||
puffin-calculator:
|
||||
image: code.letsbe.solutions/matt/puffinoffsetcalculator:latest
|
||||
build: .
|
||||
container_name: puffin-calculator
|
||||
ports:
|
||||
- "8080:80"
|
||||
|
|
|
|||
16
setup.sh
16
setup.sh
|
|
@ -25,20 +25,8 @@ if ! command -v docker-compose &> /dev/null; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "Logging into Gitea container registry..."
|
||||
echo "Please enter your Gitea credentials when prompted:"
|
||||
docker login code.letsbe.solutions
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "========================================"
|
||||
echo "Error: Failed to log in to the Gitea registry."
|
||||
echo "Please check your credentials and try again."
|
||||
echo "========================================"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Pulling and starting the Docker container..."
|
||||
docker-compose up -d
|
||||
echo "Building and starting the Docker container..."
|
||||
docker-compose up -d --build
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "========================================"
|
||||
|
|
|
|||
Loading…
Reference in New Issue