Add script to build and push Docker images to registry

- Introduced `push-images.sh` script for building and pushing backend and frontend images.
- Added functionality to select or input image tags.
- Integrated environment variable support for registry configuration.
- Implemented prompts for user confirmation before building and pushing images.
- Updated `docker-compose.prod.yml` with new image tags after pushing.
This commit is contained in:
Daniel Volz
2025-12-20 15:32:38 +01:00
parent dc1dd8c552
commit aac4079c54
15 changed files with 5116 additions and 341 deletions
+22
View File
@@ -0,0 +1,22 @@
services:
backend:
image: git.danielvolz.org/daniel/medassist/backend:0.0.1
env_file:
- .env
volumes:
- ./backend/data:/app/data
ports:
- "4000:3000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
frontend:
image: git.danielvolz.org/daniel/medassist/frontend:0.0.1
ports:
- "4174:80"
depends_on:
- backend