Skip to content

Commit 2da768e

Browse files
v3.2.0
1 parent 904b482 commit 2da768e

File tree

9 files changed

+46
-36
lines changed

9 files changed

+46
-36
lines changed

.env.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
COMPOSE_FILE=tuxgasy/docker-compose.yml:docker-compose-tuxgasy.override.yml
1+
COMPOSE_FILE=tuxgasy/compose.yaml:compose.tuxgasy.override.yml
22
COMPOSE_PROJECT_NAME=dolibarr
33

44
HOSTNAME=dolibarr.domain.tld

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This is a basic workflow to help you get started with Actions
2-
31
name: CI
42

53
on: [push, pull_request, workflow_dispatch]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ChangeMeN0w!
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
admin

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
<!-- markdownlint-configure-file { "MD024": { "allow_different_nesting": true } } -->
99

10+
## [3.2.0] 2023-08-23
11+
12+
### Changed
13+
14+
- Rename the `docker-compose.*.yml` files to `compose.*.yml`
15+
- Use [`extends` attribute](https://docs.docker.com/compose/compose-file/05-services/#extends) to refactor dolibarr and
16+
cron services
17+
18+
### Fixed
19+
20+
- Set cron secrets files in the environment variables of cron service
21+
1022
## [3.1.0] 2023-04-19
1123

1224
### Changed

bin/merge-tuxgasy-work.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ git remote rm origin
2929

3030
git filter-repo --force\
3131
--path-rename LICENSE:tuxgasy/LICENSE\
32-
--path-rename examples/with-pgsql/docker-compose.yml:tuxgasy/docker-compose.yml\
32+
--path-rename examples/with-pgsql/docker-compose.yml:tuxgasy/compose.yaml\
3333
--path-rename examples/with-secrets/env/dolibarr.env:tuxgasy/env/dolibarr.env\
3434
--path-rename examples/with-secrets/secrets/dolibarr_admin_password.secret:tuxgasy/secrets/dolibarr_admin_password.secret\
3535
--path-rename examples/with-secrets/secrets/dolibarr_admin_username.secret:tuxgasy/secrets/dolibarr_admin_username.secret\
@@ -54,7 +54,7 @@ sed -i\
5454
-e '33,35 s/./# &/'\
5555
-e '39,41 s/./# &/'\
5656
-e '44,45 s/./# &/'\
57-
tuxgasy/docker-compose.yml
57+
tuxgasy/compose.yaml
5858

5959
git add tuxgasy
6060
git commit -m 'Adjustments of Tuxgasy files'

compose.base.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
services:
2+
base:
3+
env_file:
4+
- ./tuxgasy/env/dolibarr.env
5+
depends_on:
6+
- postgres
7+
environment:
8+
DOLI_ADMIN_LOGIN_FILE: /run/secrets/dolibarr-admin-user
9+
DOLI_ADMIN_PASSWORD_FILE: /run/secrets/dolibarr-admin-password
10+
DOLI_DB_PASSWORD_FILE: /run/secrets/postgres-password
11+
DOLI_DB_USER_FILE: /run/secrets/postgres-user
12+
image: tuxgasy/dolibarr:latest
13+
restart: unless-stopped
14+
secrets:
15+
- dolibarr-admin-password
16+
- dolibarr-admin-user
17+
- postgres-user
18+
- postgres-password
19+
volumes:
20+
- dolibarr-docs:/var/www/documents
21+
- dolibarr-custom:/var/www/html/custom
Lines changed: 8 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,22 @@
1-
version: '3'
2-
31
services:
42
cron:
5-
env_file:
6-
- ./env/dolibarr.env
7-
depends_on:
8-
- postgres
93
environment:
104
DOLI_CRON: 1
11-
DOLI_DB_USER_FILE: /run/secrets/postgres-user
12-
DOLI_DB_PASSWORD_FILE: /run/secrets/postgres-password
13-
DOLI_ADMIN_LOGIN_FILE: /run/secrets/dolibarr-admin-user
14-
DOLI_ADMIN_PASSWORD_FILE: /run/secrets/dolibarr-admin-password
15-
image: tuxgasy/dolibarr:latest
16-
restart: unless-stopped
5+
DOLI_CRON_KEY_FILE: /run/secrets/dolibarr-cron-key
6+
DOLI_CRON_USER_FILE: /run/secrets/dolibarr-cron-user
7+
extends:
8+
file: ../compose.base.yaml
9+
service: base
1710
secrets:
1811
- dolibarr-admin-password
1912
- dolibarr-admin-user
20-
- dolibarr-cron-key
21-
- dolibarr-cron-user
22-
- postgres-user
23-
- postgres-password
24-
volumes:
25-
- dolibarr-docs:/var/www/documents
26-
- dolibarr-custom:/var/www/html/custom
2713

2814
dolibarr:
29-
env_file:
30-
- ./env/dolibarr.env
3115
environment:
3216
DOLI_URL_ROOT: "https://${HOSTNAME}"
33-
DOLI_ADMIN_LOGIN_FILE: /run/secrets/dolibarr-admin-user
34-
DOLI_ADMIN_PASSWORD_FILE: /run/secrets/dolibarr-admin-password
35-
DOLI_DB_PASSWORD_FILE: /run/secrets/postgres-password
36-
DOLI_DB_USER_FILE: /run/secrets/postgres-user
17+
extends:
18+
file: ../compose.base.yaml
19+
service: base
3720
labels:
3821
traefik.enable: true
3922
traefik.http.routers.dolibarr.entrypoints: websecure
@@ -43,12 +26,6 @@ services:
4326
networks:
4427
- default
4528
- web
46-
restart: unless-stopped
47-
secrets:
48-
- dolibarr-admin-password
49-
- dolibarr-admin-user
50-
- postgres-password
51-
- postgres-user
5229

5330
postgres:
5431
environment:

0 commit comments

Comments
 (0)