Last active
May 24, 2023 15:14
-
-
Save mqu/6dfef4c876bff99d6690a0631c65d205 to your computer and use it in GitHub Desktop.
diacamma + docker-compose : gestion de copropriété (syndic) et association.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.6' | |
# links: | |
# - https://www.diacamma.org/ | |
# - https://syndic.diacamma.org/static/diacamma.syndic/doc_fr/ | |
# - https://github.com/mgodlewski/dockerfiles/tree/master/diacamma | |
# - https://github.com/Diacamma2/syndic | |
# - https://github.com/Diacamma2/syndic/issues/46 | |
# keywords: docker, docker-compose.yml, docker-compose, syndic, assos, assoc, copro, copropriété, compta, syndic bénévole. | |
# paramétrage: (https://github.com/mgodlewski/dockerfiles/tree/master/diacamma#use-mysql-database) | |
# - DIACAMMA_TYPE: syndic ou asso | |
# - DIACAMMA_ORGANISATION: nom de l'organisation (syndic), sans espace, | |
# - DIACAMMA_DATABASE: sqlite (par défaut), mysql, postgresql | |
# initialize: mkdir ./data/diacamma/var/ ; touch ./data/diacamma/var/error.log | |
# à la première connexion, saisir login et MDP ; exemple: admin/admin (pour une démo). | |
# run docker-compose with --compatibility opt. | |
# alias docker=docker-compose --compatibility | |
# run: docker-compose up -d | |
# logs: docker-compse logs -ft | |
# maj: docker-compose pull ; docker-compose down ; docker-compose up -d | |
# backup: docker-compose exec app backup | |
# change log: | |
# - 2021.02 : integrate container upgrades from nonobis/diacamma (https://github.com/Diacamma2/syndic/issues/46) | |
# default configurations. | |
x-defaults-std: | |
&default-settings-std | |
restart: unless-stopped | |
logging: | |
driver: "json-file" | |
options: | |
max-size: "20k" | |
max-file: "5" | |
tmpfs: | |
- /tmp | |
- /run | |
networks: | |
- internal | |
# limitation de consommation de ressources. | |
x-defaults-ress: | |
&default-settings-ressources | |
deploy: | |
restart_policy: | |
condition: on-failure | |
max_attempts: 5 | |
resources: | |
limits: | |
cpus: '2.0' | |
memory: 100M | |
reservations: | |
memory: 25M | |
ulimits: | |
nproc: 128 | |
nofile: | |
soft: 1024 | |
hard: 2048 | |
cap_drop: | |
- ALL | |
services: | |
# no db ; because of sqlite use by default. | |
app: | |
<<: *default-settings-std | |
<<: *default-settings-ressources | |
# image: mgodlewski/diacamma | |
image nonobis/diacamma:latest # docker container update from https://github.com/Nonobis/dockers/ (diacamma) | |
read_only: true | |
restart: unless-stopped | |
ports: | |
- "127.0.0.1:8100:8100" | |
volumes: | |
- ./data/diacamma/backups/:/backups | |
# use same name as DIACAMMA_ORGANISATION. | |
- ./data/diacamma/data:/var/lucterios2/ma-copro | |
- ./data/diacamma/var/error.log:/var/lucterios2/error.log | |
environment: | |
- DIACAMMA_TYPE=syndic | |
- DIACAMMA_ORGANISATION=ma-copro | |
- DIACAMMA_DATABASE=sqlite | |
networks: | |
internal: |
Bonjour. Je l'ai installé mais c'est en anglais!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bonjour ; je peux facilement héberger une instance de test de cette application. Contactez-moi.