-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
63 lines (59 loc) · 1.76 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
version: '2'
services:
proxy:
hostname: ${MY_HOSTNAME}
image: nginx:alpine
networks:
- front-end
- back-end
ports:
- "443:443"
- "80:80"
volumes:
- $PWD/etc/letsencrypt:/etc/letsencrypt:ro
- $PWD/etc/nginx.template:/etc/nginx/nginx.template:ro
- $PWD/img:/www/data/img:ro
- $PWD/www:/www/data/welcome:ro
restart: always
command: 'sh -c "cat /etc/nginx/nginx.template | sed \"s/__MY_DOMAIN_NAME__/${MY_HOSTNAME}/\" > /etc/nginx/nginx.conf && nginx -g \"daemon off;\""'
saml:
hostname: ${MY_HOSTNAME}
build:
context: saml
dockerfile: Dockerfile
networks:
- back-end
ports:
- "443"
environment:
SERVER_NAME: ${MY_HOSTNAME}
SHIBBOLETH_SP_ENTITY_ID: ${MY_ENTITY_ID}
SHIBBOLETH_SP_CERT: /run/sp/sp-cert.pem
SHIBBOLETH_SP_PRIVKEY: /run/sp/sp-key.pem
SHIBBOLETH_SP_METADATA_PROVIDER_XML_FILE: /run/sp/sp-metadata-myvelocity.xml
volumes:
- $PWD/etc/sp:/run/sp:ro
- $PWD/etc/sp/myvelocity-shibboleth2.xml:/etc/shibboleth/shibboleth2.xml:ro
- $PWD/etc/sp/attribute-map.xml:/etc/shibboleth/attribute-map.xml:ro
- $PWD/etc/letsencrypt:/etc/letsencrypt:ro
- $PWD/etc/idp/surfconext.test/certificate.pem:/opt/shibboleth-sp/etc/shibboleth/surfconext.pem:ro
jupyter:
build:
context: $PWD/jupyterhub
dockerfile: Dockerfile.jupyterhub
args:
- JUPYTERHUB_VERSION=${MY_JUPYTERHUB_VERSION}
networks:
- back-end
ports:
- "8000"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:rw"
- $PWD/etc/jupyterhub:/srv/jupyterhub
- $PWD/var/jupyter:/volumes/jupyter
command: jupyterhub
networks:
front-end:
driver: bridge
back-end:
driver: bridge