18 lines
385 B
Bash
Executable File
18 lines
385 B
Bash
Executable File
# prepare-app.sh
|
|
#!/bin/bash
|
|
|
|
set -e # Exit on any error
|
|
|
|
echo "Preparing app..."
|
|
|
|
# Create Docker named volume
|
|
docker volume create postgres_data
|
|
|
|
# Create Docker network
|
|
docker network create mic_default_san || true # Ignore if it already exists
|
|
|
|
# Build the Django application image
|
|
docker build -t myproject-web .
|
|
|
|
echo "Preparation complete. You can now start the application."
|