Initializes Docker setup for the project
Establishes a containerized development and production environment. Creates Dockerfiles, docker-compose configurations, and associated scripts. Prioritizes easy setup, dependency isolation, and platform consistency. Enhances dev experience and simplifies deployment.
This commit is contained in:
parent
5c262d2f45
commit
9454359cd2
13 changed files with 5250 additions and 1 deletions
12
scripts/dev-up.sh
Executable file
12
scripts/dev-up.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
export DOCKER_PLATFORM="${DOCKER_PLATFORM:-$(docker info --format '{{.OSType}}/{{.Architecture}}' 2>/dev/null || echo linux/amd64)}"
|
||||
|
||||
echo "[dev-up] Using platform: ${DOCKER_PLATFORM}"
|
||||
docker compose -f docker-compose.dev.yml up -d --remove-orphans
|
||||
echo "[dev-up] Dev environment is up at http://localhost:5173"
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue