Commit Graph

28 Commits

Author SHA1 Message Date
chamikaJ
f352d823a8 Merge branch 'main' of https://github.com/Worklenz/worklenz into development 2025-07-01 15:22:41 +05:30
kithmina1999
0d0596b767 ci(docker): update postgres healthcheck and retry settings
- Modify healthcheck command to use DB_NAME and DB_USER environment variables
- Reduce retries from 10 to 5 to fail faster if database is unavailable
2025-06-20 08:48:51 +05:30
kithmina1999
3ace14fcdb build(docker): optimize docker setup and compose configuration
- Split Dockerfile into multi-stage build to reduce final image size
- Update docker-compose.yml with restart policies and health checks
- Improve .dockerignore files for both frontend and backend
- Fix MinIO bucket creation script to use 'alias set' instead of deprecated command
- Enhance PostgreSQL healthcheck configuration
2025-06-19 22:26:20 +05:30
kithmina1999
f142046dcc fix(docker): correct bash syntax in postgres backup command
The command was using incorrect quote escaping which could cause issues with variable expansion and file deletion. Fixed by using single quotes for the outer string and proper escaping for date command substitution.
2025-06-06 16:32:11 +05:30
kithmina1999
c5e480af52 fix(db): correct variable syntax in pg_dump command
The previous version used $$ for variable expansion which doesn't work in this context. Changed to single $ for proper shell variable expansion in the database backup command.
2025-06-06 16:30:46 +05:30
kithmina1999
f89e3e8554 refactor(database): improve database initialization and backup handling
- Rename init script from init.sh to 00_init.sh for better ordering
- Rewrite database initialization script to support backup restoration
- Add proper migration handling with schema_migrations table
- Fix indentation and quoting issues in docker-compose.yml
- Remove old 00-init-db.sh script as it's replaced by new implementation
2025-06-06 16:26:11 +05:30
kithmina1999
1442c57e18 refactor(docker): improve postgres container initialization script
The command for the postgres service was restructured to:
1. Use more readable multi-line formatting
2. Replace the find -exec with a more efficient for loop
3. Maintain the same functionality while improving maintainability
2025-06-06 16:06:42 +05:30
kithmina1999
0987fb14b2 refactor(docker): improve command formatting and fix shell script issues
- Fix shell script syntax in db service command by using proper quoting and loop structure
- Clean up indentation and formatting in both db and db-backup services
- Ensure consistent command structure while maintaining the same functionality
2025-06-06 15:34:18 +05:30
kithmina1999
dc22d1e6cb fix(db): improve database initialization script and docker setup
- Rename init.sh to 00_init.sh for better ordering
- Format docker-compose command for better readability
- Add comprehensive database initialization script with backup restoration
- Implement proper migration handling with schema_migrations table
2025-06-06 15:12:06 +05:30
kithmina1999
11694de4e6 feat(db): add database backup and initialization system
- Add backup.sh script for manual PostgreSQL database backups
- Update .gitignore to exclude pg_backups directory
- Modify docker-compose.yml to include backup service and volume mounts
- Add init.sh script for automated database initialization with backup restoration
2025-06-06 12:38:46 +05:30
kithmina1999
38df66044d Fix entrypoint syntax for MinIO bucket creation script 2025-05-09 15:29:36 +05:30
chamiakJ
b9e5f396fd Refactor frontend service configuration in docker-compose.yml
- Changed the frontend service to build from a local context instead of using a pre-built image.
- Specified the Dockerfile for the frontend build process.
2025-04-28 15:20:39 +05:30
chamiakJ
ac2afd6949 Remove legacy environment files and update Docker configuration for environment management
- Deleted .env and .env.example files to streamline environment variable management.
- Updated docker-compose.yml to utilize env_file for frontend and backend services.
- Enhanced update-docker-env.sh to create separate environment files for development and production.
- Revised README.md to reflect the new environment file structure and setup instructions.
2025-04-28 12:37:41 +05:30
chamiakJ
6e4bdea1c2 Enhance WebSocket support and update environment configuration
- Added VITE_SOCKET_URL to docker-compose.yml for WebSocket connection.
- Updated update-docker-env.sh to handle SSL options for WebSocket URLs.
- Modified Dockerfile to include VITE_SOCKET_URL in env-config.js.
- Implemented getSocketUrl function in frontend to retrieve WebSocket URL.
- Refactored socket configuration to use centralized socket URL from environment settings.
2025-04-28 11:43:16 +05:30
chamiakJ
2a3ae31e4e Enhance Docker deployment with environment variable configuration
- Added environment variable setup in docker-compose.yml for VITE_API_URL.
- Introduced update-docker-env.sh script to create/update .env file for local and remote deployments.
- Updated Dockerfile to dynamically create env-config.js during build.
- Modified frontend to load environment configuration from env-config.js.
- Refactored API client to use centralized config for API URL.
2025-04-28 11:32:44 +05:30
chamikaJ
a328da679c Update docker-compose.yml to use bind mount for database initialization and add script execution for dos2unix; modify CORS origin check in app.ts for production environment 2025-04-25 12:30:15 +05:30
chamikaJ
e42819ef64 Update environment configuration, Docker setup, and frontend/backend dependencies
- Updated .env.example and .env files for backend and frontend with placeholder values.
- Enhanced .gitignore to include additional files and directories.
- Modified docker-compose.yml to change image names and improve service health checks.
- Updated README.md and SETUP_THE_PROJECT.md for clearer setup instructions.
- Added database initialization scripts and SQL files for structured database setup.
- Updated frontend Dockerfile to use Node.js 22 and adjusted package.json scripts.
- Improved error handling and logging in start scripts for better debugging.
- Added reCAPTCHA support in the signup page with conditional loading based on environment variables.
2025-04-18 17:10:56 +05:30
chamikaJ
8825b0410a init 2025-04-17 18:28:54 +05:30
kithmina1999
2fb47c4c1d adding network configuration to docker-compose file 2024-12-30 15:55:39 +05:30
Evgenii Utkin
276d24143d Fixing docker image for backend service and grouping them in network 2024-10-15 22:52:49 +02:00
Florian Gareis
1b669f76b8 Add images to compose file 2024-06-02 22:04:47 +00:00
Gabriel A. Devenyi
c3fe4a7f9e Add missed env variables in docker-compose 2024-05-23 14:58:40 -04:00
Gabriel A. Devenyi
01fa40d96e Add frontend dependency on backend being started 2024-05-23 14:30:17 -04:00
Gabriel A. Devenyi
3f1fcf50ab Fix database container to use existing environment variables. 2024-05-23 14:26:24 -04:00
Gabriel A. Devenyi
bd0fbf665b remove unneeded volume mounts 2024-05-23 14:25:56 -04:00
Gabriel A. Devenyi
859b3ef17d Add all the environment variables used in the code to the docker compose 2024-05-23 13:48:57 -04:00
Gabriel A. Devenyi
5791f1bbd5 Remove extraneous docker compose settings 2024-05-23 13:33:21 -04:00
Mrs Feathers
cacda32e3f Create docker-compose.yml 2024-05-20 07:09:50 -04:00