Skip to content

Commit fcb8d9a

Browse files
committed
chore: reorganize Docker infrastructure into backend directory
Move Docker-related files into the backend directory to co-locate infrastructure with the backend code: - docker-compose.yml → backend/docker-compose.yml - nginx.conf → backend/nginx.conf - scripts/docker-build.sh → backend/docker-build.sh Update all path references in: - backend/README.md: Update build script path - backend/docker-compose.yml: Update context and volume paths - backend/docker-build.sh: Update package.json reference This keeps backend infrastructure self-contained and makes the deployment setup clearer. Addresses PR #892 feedback.
1 parent 8b5f5b9 commit fcb8d9a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

backend/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ API documentation: http://localhost:8000/api/docs
2626

2727
```bash
2828
# Create environment file
29-
cp backend/.env.example backend/.env
30-
# Edit backend/.env if needed (defaults work for local development)
29+
cp .env.example .env
30+
# Edit .env if needed (defaults work for local development)
3131

3232
# Build with version from package.json
33-
./scripts/docker-build.sh
33+
./docker-build.sh
3434

3535
# Start all services (nginx + backend + redis)
3636
docker compose up -d

scripts/docker-build.sh renamed to backend/docker-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Build Docker images with version from package.json
4-
VERSION=$(node -p "require('./package.json').version")
4+
VERSION=$(node -p "require('../package.json').version")
55
export APP_VERSION=$VERSION
66

77
echo "Building with version: $VERSION"

docker-compose.yml renamed to backend/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
- "80:80"
66
volumes:
77
- ./nginx.conf:/etc/nginx/conf.d/default.conf
8-
- ./out:/usr/share/nginx/html
8+
- ../out:/usr/share/nginx/html
99
depends_on:
1010
backend:
1111
condition: service_healthy
@@ -18,14 +18,14 @@ services:
1818

1919
backend:
2020
build:
21-
context: ./backend
21+
context: .
2222
dockerfile: Dockerfile
2323
args:
2424
APP_VERSION: ${APP_VERSION:-0.15.0}
2525
ports:
2626
- "8000:8000"
2727
env_file:
28-
- ./backend/.env
28+
- .env
2929
environment:
3030
# Only override what needs Docker networking
3131
REDIS_URL: redis://redis:6379/0
File renamed without changes.

0 commit comments

Comments
 (0)