-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
85 lines (79 loc) · 2.94 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
75
76
77
78
79
80
81
82
83
84
85
version: "3.9"
services:
php:
build:
target: local
context: ./
dockerfile: docker/php/dev.Dockerfile
working_dir: /var/www/html
depends_on:
- mysql
volumes:
- ./:/var/www/html:cached
- ./public:/var/www/html/public:delegated
nginx:
image: wodby/nginx
depends_on:
- php
environment:
NGINX_STATIC_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: php
NGINX_VHOST_PRESET: php
NGINX_SERVER_ROOT: /var/www/html/public
volumes:
- ./public:/var/www/html/public:delegated
- ./node_modules:/var/www/html/node_modules:delegated
networks:
- default
- traefik-gateway
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-gateway"
- "traefik.http.routers.talentpulse-backend-nginx.rule=Host(`talentpulse-backend.localhost`)"
- "traefik.http.routers.talentpulse-backend-nginx.priority=1"
- "traefik.http.routers.talentpulse-backend-nginx.entrypoints=https"
- "traefik.http.routers.talentpulse-backend-nginx.tls=true"
mysql:
image: mysql/mysql-server:8.0
command: --max_allowed_packet=32505856
working_dir: /application
environment:
MYSQL_DATABASE: talentpulse
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: talentpulse
MYSQL_PASSWORD: talentpulse
volumes:
- mysql:/var/lib/mysql
- ./docker/mysql/init:/docker-entrypoint-initdb.d
ports:
- "127.0.0.1:40201:3306"
fontys-hogeschool-idp:
image: kenchan0130/simplesamlphp
environment:
SIMPLESAMLPHP_SP_ENTITY_ID: https://talentpulse.localhost
SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE: https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/acs
SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE: https://talentpulse-backend.localhost/auth/methods/saml2/a5c5d904-ed29-4462-ab6b-e73cb3270967/logout
volumes:
- ./docker/simplesaml/fontys-hogeschool/config/authsources.php:/var/www/simplesamlphp/config/authsources.php
- ./docker/simplesaml/fontys-hogeschool/metadata/saml20-sp-remote.php:/var/www/simplesamlphp/metadata/saml20-sp-remote.php
- ./docker/simplesaml/fontys-hogeschool/metadata/saml20-idp-remote.php:/var/www/simplesamlphp/metadata/saml20-idp-remote.php
networks:
- default
- traefik-gateway
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-gateway"
- "traefik.http.services.talentpulse-fontys-hogeschool-idp.loadbalancer.server.port=8000"
- "traefik.http.routers.talentpulse-fontys-hogeschool-idp.rule=Host(`fontys-hogeschool.saml-talentpulse.localhost`)"
- "traefik.http.routers.talentpulse-fontys-hogeschool-idp.entrypoints=https"
- "traefik.http.routers.talentpulse-fontys-hogeschool-idp.tls=true"
ports:
- "50201:8080"
volumes:
mysql:
driver: local
networks:
traefik-gateway:
name: traefik-gateway
external: true