-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
74 lines (74 loc) · 3.16 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
74
version: '3.8'
services:
nginx:
container_name: nginx
image: nginx:1.19
restart: unless-stopped
ports:
- 443:443
- 80:80
volumes:
# You can change the "/data/docker-nginx" with
# another directory if you want to store the container
# permanent data elsewhere.
- /data/docker-nginx/nginx-auth/certs:/etc/nginx/certs
- /data/docker-nginx/nginx-templates:/etc/nginx/templates
networks:
- chimitheque
chimitheque:
container_name: chimitheque
# Always choose the "production" image.
# development
#image: tbellembois/gochimitheque:latest
# production
image: tbellembois/gochimitheque:2.0.8
restart: unless-stopped
environment:
# enable debug logs - not recommended in production
- CHIMITHEQUE_DEBUG=false
# application path, with a trailing /
- CHIMITHEQUE_APPPATH=/chimitheque/
# application url
- CHIMITHEQUE_APPURL=http:https://localhost:8081
# you should not have any reason to change this
- CHIMITHEQUE_DOCKERPORT=8081
# SMTP server parameters
- CHIMITHEQUE_MAILSERVERADDRESS=smtp.foo.com
- CHIMITHEQUE_MAILSERVERPORT=467
- CHIMITHEQUE_MAILSERVERUSETLS=true
# share your product database
- CHIMITHEQUE_ENABLEPUBLICPRODUCTSENDPOINT=true
# list of admins
# log file
- CHIMITHEQUE_LOGFILE=/var/log/chimitheque.log
# LDAP server parameters
- CHIMITHEQUE_LDAPSERVERURL=ldaps:https://ldapserver.foo.fr/ou=users,dc=foo,dc=fr
- CHIMITHEQUE_LDAPSERVERUSERNAME=cn=admin,ou=users,ou=local,dc=users,dc=fr
- CHIMITHEQUE_LDAPSERVERPASSWORD=password
- CHIMITHEQUE_LDAPUSERSEARCHBASEDN=ou=users,dc=foo,dc=fr
- CHIMITHEQUE_LDAPGROUPSEARCHBASEDN=ou=users,dc=foo,dc=fr
# memberOf attribute must be provided by the LDAP server
- CHIMITHEQUE_LDAPUSERSEARCHFILTER=(&(mail=%s)(objectclass=user))
# cn attribute must be provided by the LDAP server
- CHIMITHEQUE_LDAPGROUPSEARCHFILTER=(cn=%s)
# auto create users in db with LDAP authentication
# - CHIMITHEQUE_AUTOCREATEUSER=true
# one shot command: reset admin password
# - CHIMITHEQUE_RESETADMINPASSWORD=true
# one shot command: update storages QR codes
# - CHIMITHEQUE_UPDATEQRCODE=true
# one shot command: test your SMTP server parameters
# one shot command: initial product database import
# - CHIMITHEQUE_IMPORTFROM=https://chimitheque.ens-lyon.fr
volumes:
- /data/docker-chimitheque/chimitheque-db:/data
- /data/docker-chimitheque/chimitheque-log:/var/log
networks:
- chimitheque
depends_on:
- nginx
networks:
chimitheque: