refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
This commit is contained in:
@@ -1,13 +1,48 @@
|
||||
services:
|
||||
mischcrm:
|
||||
container_name: mischcrm
|
||||
monica:
|
||||
image: git.mischlabs.de/mrdiderot/crm:latest
|
||||
container_name: mischcrm
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- '38090:8085'
|
||||
- "${MONICA_PORT:-38090}:80"
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- './data:/app/data'
|
||||
- monica_storage:/var/www/html/storage
|
||||
|
||||
cron:
|
||||
image: git.mischlabs.de/mrdiderot/crm:latest
|
||||
container_name: mischcrm_cron
|
||||
restart: unless-stopped
|
||||
command: cron.sh
|
||||
env_file:
|
||||
- .env
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- monica_storage:/var/www/html/storage
|
||||
|
||||
db:
|
||||
image: mariadb:11
|
||||
container_name: mischcrm_db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- PORT=8085
|
||||
- DATABASE_PATH=/app/data/crm.db
|
||||
- NODE_ENV=production
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: "true"
|
||||
MYSQL_DATABASE: ${DB_DATABASE:-monica}
|
||||
MYSQL_USER: ${DB_USERNAME:-monica}
|
||||
MYSQL_PASSWORD: ${DB_PASSWORD:-change-me}
|
||||
volumes:
|
||||
- monica_db:/var/lib/mysql
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "mariadb-admin ping -h localhost -u$${MYSQL_USER} -p$${MYSQL_PASSWORD} --silent"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
volumes:
|
||||
monica_storage:
|
||||
monica_db:
|
||||
|
||||
Reference in New Issue
Block a user