feat(dolibarr): deploy and verify dolibarr
This commit includes the necessary scripts and configuration to deploy and verify Dolibarr using Docker.
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.env.local
|
42
docker-compose.yml
Normal file
42
docker-compose.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
dolibarr:
|
||||
image: tuxgasy/dolibarr:latest
|
||||
container_name: STLPWebsite-dev-app
|
||||
restart: always
|
||||
ports:
|
||||
- "8081:80"
|
||||
environment:
|
||||
- DOLI_DB_HOST=db
|
||||
- DOLI_DB_NAME=${MARIADB_DATABASE}
|
||||
- DOLI_DB_USER=${MARIADB_USER}
|
||||
- DOLI_DB_PASSWORD=${MARIADB_PASSWORD}
|
||||
- DOLI_URL_ROOT=http://localhost:8080
|
||||
volumes:
|
||||
- STLPWebsite-dev-app-docs:/var/www/documents
|
||||
- STLPWebsite-dev-app-custom:/var/www/html/custom
|
||||
networks:
|
||||
- STLPWebsite-dev-network
|
||||
|
||||
db:
|
||||
image: mariadb:latest
|
||||
container_name: STLPWebsite-dev-db
|
||||
restart: always
|
||||
environment:
|
||||
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
||||
- MARIADB_DATABASE=${MARIADB_DATABASE}
|
||||
- MARIADB_USER=${MARIADB_USER}
|
||||
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
|
||||
volumes:
|
||||
- STLPWebsite-dev-db-data:/var/lib/mysql
|
||||
networks:
|
||||
- STLPWebsite-dev-network
|
||||
|
||||
volumes:
|
||||
STLPWebsite-dev-db-data:
|
||||
STLPWebsite-dev-app-docs:
|
||||
STLPWebsite-dev-app-custom:
|
||||
|
||||
networks:
|
||||
STLPWebsite-dev-network:
|
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"last_completed_step": null,
|
||||
"last_run_timestamp": null
|
||||
}
|
||||
"last_completed_step": "01_verify_dolibarr.sh",
|
||||
"last_run_timestamp": "2025-09-09T21:38:14Z"
|
||||
}
|
@@ -1,2 +1,4 @@
|
||||
#!/bin/bash
|
||||
# Deploy Dolibarr
|
||||
|
||||
docker compose --env-file .env.local up -d
|
@@ -1,2 +1,16 @@
|
||||
#!/bin/bash
|
||||
# Verify Dolibarr
|
||||
|
||||
echo "Waiting for Dolibarr to start..."
|
||||
sleep 60
|
||||
|
||||
echo "Pinging Dolibarr..."
|
||||
if curl -s http://172.31.0.2:80 | grep -q "Dolibarr"; then
|
||||
echo "Dolibarr verification successful."
|
||||
exit 0
|
||||
else
|
||||
echo "Dolibarr verification failed."
|
||||
echo "Dolibarr is not responding as expected. Here is the verbose output from curl:"
|
||||
curl -v http://172.31.0.2:80
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user