Skip to content

Commit 1b43a95

Browse files
authored
fixed suggestions and renamed archives
1 parent 5d1cf81 commit 1b43a95

File tree

9 files changed

+83
-14
lines changed

9 files changed

+83
-14
lines changed
File renamed without changes.

examples/with-cron/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Dolibarr with Cron
2+
3+
This example shows how to enable the **Scheduled Tasks** module in Dolibarr by configuring cron support within the Docker setup.
4+
5+
To achieve this, you'll need **two Dolibarr containers**:
6+
7+
* One main container serving the application
8+
* One additional container dedicated to running cron jobs
9+
10+
The provided `docker-compose.yml` sets up this architecture for you.
11+
12+
## Environment Variables
13+
14+
To ensure the setup works correctly, you must configure the `.env` file in this directory. Below are the environment variables that must be changed:
15+
16+
```env
17+
# Add a random 16-character ASCII string
18+
DOLI_CRON_KEY=
19+
20+
# Add a unique 16-character ASCII string for this instance
21+
DOLI_INSTANCE_UNIQUE_ID=
22+
23+
# Root password for the MySQL database (use a secure value)
24+
ROOT_DB_PASSWORD=
25+
```
26+
27+
> [!IMPORTANT]
28+
> The `.env` file must be populated before running `docker-compose up`, otherwise the containers may fail to initialize properly.

examples/with-cron/dolibarr-with-cron.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/with-mysql/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Dolibarr with MySQL
2+
3+
This example demonstrates how to run a **Dolibarr** instance alongside a **MySQL** server using Docker Compose. This setup reflects a typical deployment architecture.
4+
5+
## Environment Variables
6+
7+
To ensure the setup works correctly, you must configure the `.env` file in this directory. Below are the environment variables that must be changed:
8+
9+
```env
10+
# Add a random 16-character ASCII string
11+
DOLI_CRON_KEY=
12+
13+
# Add a unique 16-character ASCII string for this instance
14+
DOLI_INSTANCE_UNIQUE_ID=
15+
16+
# Root password for the MySQL database (use a secure value)
17+
ROOT_DB_PASSWORD=
18+
```
19+
20+
> [!IMPORTANT]
21+
> The `.env` file must be populated before running `docker-compose up`, otherwise the containers may fail to initialize properly.

examples/with-mysql/dolibarr-with-mysql.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/with-pgsql/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Dolibarr with PostgreSQL
2+
3+
This example demonstrates how to run a **Dolibarr** instance connected to a **PostgreSQL** server using Docker Compose. Unlike the default MySQL setup, PostgreSQL support is relatively new and requires manual installation during the first run.
4+
5+
## First-Time Setup Instructions
6+
7+
When using the `pgsql` database driver, Dolibarr cannot auto-install on startup. You must complete the installation manually:
8+
9+
1. Open your browser and navigate to:
10+
`http://0.0.0.0/install`
11+
2. Follow the on-screen installation steps.
12+
3. After installation, create the `install.lock` file inside the container to prevent reinstall prompts:
13+
14+
```bash
15+
docker-compose exec services-data_dolibarr_1 /bin/bash -c "touch /var/www/html/documents/install.lock"
16+
```
17+
18+
## Environment Variables
19+
20+
To ensure the setup works correctly, you must configure the `.env` file in this directory. Below are the environment variables that must be changed:
21+
22+
```env
23+
# Add a random 16-character ASCII string
24+
DOLI_CRON_KEY=
25+
26+
# Add a unique 16-character ASCII string for this instance
27+
DOLI_INSTANCE_UNIQUE_ID=
28+
29+
# Root password for the MySQL database (use a secure value)
30+
ROOT_DB_PASSWORD=
31+
```
32+
33+
> [!IMPORTANT]
34+
> The `.env` file must be populated before running `docker-compose up`, otherwise the containers may fail to initialize properly.

examples/with-pgsql/dolibarr-with-postgres.md

Lines changed: 0 additions & 8 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)