This project is a card management system using PHP, Nginx, PostgreSQL, and MinIO.
- Docker
- Docker Compose
Follow these steps to set up and run the project:
-
Clone the repository:
git clone https://github.com/your-username/card-manager.git cd card-manager
-
Make the setup script executable:
chmod +x setup.sh
-
Run the setup script to create your
.env
file:./setup.sh
-
Open the
.env
file and update the environment variables with your specific configuration:nano .env
Ensure you set appropriate values for:
POSTGRES_USER
POSTGRES_PASSWORD
POSTGRES_MULTIPLE_DATABASES
MINIO_ROOT_USER
MINIO_ROOT_PASSWORD
-
Build and start the Docker containers:
docker-compose up -d --build
-
Access the applications:
- Web application: http://localhost
- MinIO console: http://localhost:9001
- Label Studio: http://localhost:8080
web/
: Contains the PHP application codenginx/
: Nginx configurationpostgres-init/
: PostgreSQL initialization scriptsdocker-compose.yml
: Defines the multi-container Docker applicationsetup.sh
: Script to initialize the.env
file
To make changes to the project:
- Modify the code in the
web/src
directory - Rebuild and restart the containers:
docker-compose down docker-compose up -d --build
If you encounter any issues:
- Check the Docker logs:
docker-compose logs
- Ensure all required ports are available (80, 5432, 9000, 9001)
- Verify that your
.env
file is correctly configured
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE.md file for details.