mirror of
https://github.com/sassanix/Warracker.git
synced 2026-01-05 04:59:31 -06:00
Added docker-compose for people to easily copy it to their stacks
This commit is contained in:
44
README.md
44
README.md
@@ -114,6 +114,50 @@ Warracker is a web-based application that provides a centralized system for mana
|
||||
|
||||
## 🐋 Pull Docker
|
||||
|
||||
|
||||
```
|
||||
services:
|
||||
warracker:
|
||||
image: ghcr.io/sassanix/warracker/main:latest
|
||||
ports:
|
||||
- "8005:80"
|
||||
volumes:
|
||||
- warracker_uploads:/data/uploads
|
||||
environment:
|
||||
- DB_HOST=warrackerdb
|
||||
- DB_NAME=warranty_db
|
||||
- DB_USER=warranty_user
|
||||
- DB_PASSWORD=${DB_PASSWORD:-warranty_password}
|
||||
- SMTP_HOST=smtp.email.com
|
||||
- SMTP_PORT=465
|
||||
- SMTP_USERNAME=youremail@email.com
|
||||
- SMTP_PASSWORD=password
|
||||
depends_on:
|
||||
warrackerdb:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
warrackerdb:
|
||||
image: postgres:15-alpine
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_DB=warranty_db
|
||||
- POSTGRES_USER=warranty_user
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD:-warranty_password}
|
||||
restart: unless-stopped
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
warracker_uploads:
|
||||
```
|
||||
|
||||
To get the docker compose file please go [here](https://github.com/sassanix/Warracker/tree/main/Docker)
|
||||
|
||||
## 📝 Usage
|
||||
|
||||
Reference in New Issue
Block a user