forked from OpenDx28/3dslicerhub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (65 loc) · 2.22 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
# Documentación Redirección http-https:
# https://doc.traefik.io/traefik/migration/v1-to-v2/#http-to-https-redirection-is-now-configured-on-routers
# código ejemplo:
# https://www.youtube.com/watch?v=naCHq6sMMI8
version: "3.3"
services:
3dslicer-hub:
image: opendx/tslicerh
container_name: ${TDSLICERHUB_NAME}
build:
context: .
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./proxy/nginx.conf:/app/proxy/nginx.conf
- 3dslicer-hub-volume:/srv
environment:
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1 # Prevents Python from writing pyc files to disc (equivalent to
proxy:
image: opendx/nginx
container_name: ${NGINX_NAME}
build:
context: ./proxy
depends_on:
- 3dslicer-hub
ports:
- "8001:80"
expose:
- "80"
volumes:
- ./proxy/nginx.conf:/etc/nginx/nginx.conf:ro
command: [ nginx-debug, '-g', 'daemon off;' ]
# Execute the first time the container is created:
# docker exec -it tdslicerhub-openldap ldapadd -x -D cn=admin,dc=opendx,dc=org -w admin_pass -f /home/users/ou.ldif
# docker exec -it tdslicerhub-openldap ldapadd -x -D cn=admin,dc=opendx,dc=org -w admin_pass -f /home/users/usuarios.ldif
openldap:
image: osixia/openldap:stable
container_name: ${OPENLDAP_NAME}
# domainname: "opendx.org"
# hostname: "ldap-server"
ports:
- "389:389"
expose:
- "389"
volumes:
- ./data/certificates:/container/service/slapd/assets/certs
- ./data/slapd/database:/var/lib/ldap
- ./data/slapd/config:/etc/ldap/slapd.d
- ./users:/home/users
environment:
- LDAP_ORGANISATION=opendx
- LDAP_DOMAIN=opendx.org
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=admin_pass
- LDAP_CONFIG_PASSWORD=config_pass
- "LDAP_BASE_DN=dc=opendx,dc=org"
- LDAP_TLS_VERIFY_CLIENT=try # https://github.com/osixia/docker-openldap/issues/105 solo en development
- LDAP_TLS_CRT_FILENAME=server.crt
- LDAP_TLS_KEY_FILENAME=server.key
- LDAP_TLS_CA_CRT_FILENAME=opendx.org.ca.crt
- LDAP_READONLY_USER=true
- LDAP_READONLY_USER_USERNAME=user-ro
- LDAP_READONLY_USER_PASSWORD=ro_pass
volumes:
3dslicer-hub-volume: