Created dedicated workspace for Docker deployment configurations and scripts. Improves organization by grouping all deployment-related files together. ## New Structure - docker-stack/: Docker Compose files and deployment scripts - docker-compose-standalone.yaml - docker-compose-swarm.yml - docker-compose-debug.yml - deploy-standalone.sh - deploy-swarm.sh - README.md (deployment documentation) - package.json ## Changes - Moved all docker-compose YAML files to docker-stack/ - Moved deploy scripts to docker-stack/ - Updated VS Code workspace to include docker-stack - Updated documentation (README, CLAUDE.md) ## Deployment Workflow 1. Build: `cd web-app && ./build.sh 2.20.0` 2. Deploy: `cd docker-stack && ./deploy-standalone.sh 2.20.0` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
47 lines
1.0 KiB
Markdown
47 lines
1.0 KiB
Markdown
# Docker Stack
|
|
|
|
Docker Compose configurations and deployment scripts for the Evidencija Režija application.
|
|
|
|
## Files
|
|
|
|
### Docker Compose Configurations
|
|
|
|
- `docker-compose-standalone.yaml` - Standalone deployment with docker-compose
|
|
- `docker-compose-swarm.yml` - Docker Swarm deployment
|
|
- `docker-compose-debug.yml` - Debug/development deployment
|
|
|
|
### Deployment Scripts
|
|
|
|
- `deploy-standalone.sh` - Deploy standalone configuration
|
|
- `deploy-swarm.sh` - Deploy swarm configuration
|
|
|
|
## Usage
|
|
|
|
### Deploying Standalone
|
|
|
|
```bash
|
|
cd docker-stack
|
|
./deploy-standalone.sh 2.20.0
|
|
```
|
|
|
|
### Deploying to Swarm
|
|
|
|
```bash
|
|
cd docker-stack
|
|
./deploy-swarm.sh 2.20.0
|
|
```
|
|
|
|
## Prerequisites
|
|
|
|
- Docker image must be built first: `cd ../web-app && ./build.sh 2.20.0`
|
|
- MongoDB data directory: `../mongo-volume/`
|
|
- MongoDB backup directory: `../mongo-backup/`
|
|
|
|
## Configuration
|
|
|
|
All compose files reference:
|
|
- Web app image: `utility-bills-tracker:${IMAGE_VERSION}`
|
|
- Volume mounts: `../web-app/etc/hosts/`
|
|
- MongoDB data: `../mongo-volume/`
|
|
- MongoDB backups: `../mongo-backup/`
|