-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
73 lines (65 loc) · 1.73 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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/mqu/docker-diacamma
# 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
# run docker-compose with --compatibility opt.
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
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:
app:
<<: *default-settings-std
<<: *default-settings-ressources
image: local-build/diacamma/v01
# read_only: true
build:
context: ./build/diacama-syndic/
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "127.0.0.1:8100:8100"
volumes:
- ./data/diacamma/backups/:/backups
- ./data/diacamma/data:/var/lucterios2/mon-syndic
# - ./data/diacamma/var/error.log:/var/lucterios2/error.log
environment:
- DIACAMMA_TYPE=syndic
- DIACAMMA_ORGANISATION=mon-syndic
- DIACAMMA_DATABASE=sqlite
networks:
internal: