diff --git a/docker-compose.yml b/docker-compose.yml index 04674c8..8094a74 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,10 @@ services: retries: 5 web: - build: . + build: + context: . + dockerfile: Dockerfile + #image: ghcr.io/alexander-porter/qsyncbackend:main ports: - "8099:8080" environment: diff --git a/readme.md b/readme.md index cba2082..3e07932 100644 --- a/readme.md +++ b/readme.md @@ -8,3 +8,25 @@ QSyncBackend is a simple backend written in Python for syncing files between two 4. Run the backend using `gunicorn -w 4 -b 127.0.0.1:8080 app:app` ## Run from Docker +1. Modify the `.env` file to set your MySQL database credentials: + + ```bash + DB_USER=your_username + DB_PASSWORD=your_password + DB_NAME=your_database_name + DB_HOST=your_database_host + SECRET_KEY=your_secret_key_here + NEED_CAPTCHA=True + ``` + +2. Run + ```bash + docker run -d -p 8099:8080 --env-file .env ghcr.io/alexander-porter/qsyncbackend:main + ``` + +## Run from Docker Compose +1. Clone the repository +2. Run + ```bash + docker-compose up -d + ``` \ No newline at end of file