-
Notifications
You must be signed in to change notification settings - Fork 5
/
compose.yaml
145 lines (137 loc) · 5.38 KB
/
compose.yaml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
services:
app:
hostname: "${DRUPAL_HOSTNAME}"
container_name: "${COMPOSE_PROJECT_NAME}-app"
image: "${DRUPAL_IMAGE}"
volumes:
- .:/app:delegated
- ssh:/tmp/druid_ssh-agent:ro
environment:
APP_ENV: "${APP_ENV:-dev}"
DRUPAL_ROUTES: "https://varnish-${DRUPAL_HOSTNAME},https://helfi-proxy.docker.so,http://${COMPOSE_PROJECT_NAME}-varnish"
STAGE_FILE_PROXY_ORIGIN: "${STAGE_FILE_PROXY_ORIGIN}"
STAGE_FILE_PROXY_ORIGIN_DIR: "${STAGE_FILE_PROXY_ORIGIN_DIR}"
DRUSH_OPTIONS_URI: "https://${DRUPAL_HOSTNAME}"
# XDEBUG_ENABLE: "true"
# DOCKERHOST: host.docker.internal
# XDEBUG_CONFIG: "remote_port=9001 remote_host=host.docker.internal remote_connect_back=0"
# PHP_IDE_CONFIG: "${PHP_IDE_CONFIG:-serverName=${DRUPAL_HOSTNAME}}"
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -S host.docker.internal:1025 -t
# permission issues.
DTT_BASE_URL: "http://app:8080"
SIMPLETEST_BASE_URL: "http://app:8080"
SIMPLETEST_DB: "mysql://drupal:drupal@db:3306/drupal"
DRUPAL_REVERSE_PROXY_ADDRESS: "https://asuntotuotanto.docker.so"
BROWSERTEST_OUTPUT_BASE_URL: "https://${DRUPAL_HOSTNAME}"
DRUPAL_VARNISH_HOST: "${COMPOSE_PROJECT_NAME}-varnish"
DRUPAL_VARNISH_PORT: 6081
REDIS_HOST: redis
ASU_ASUNTOTUOTANTO_URL: "https://asuntotuotanto.docker.so"
networks:
- internal
- stonehenge-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-app.entrypoints=https"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-app.rule=Host(`${DRUPAL_HOSTNAME}`)"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-app.tls=true"
- "traefik.http.services.${COMPOSE_PROJECT_NAME}-app.loadbalancer.server.port=8080"
- "traefik.docker.network=stonehenge-network"
#extra_hosts:
#- "host.docker.internal:host-gateway"
#- "${DRUPAL_HOSTNAME}:host-gateway"
db:
container_name: "${COMPOSE_PROJECT_NAME}-db"
image: druidfi/mariadb:10.6-drupal
volumes:
- db_data:/var/lib/mysql
ports:
- 3306
networks:
- internal
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:8.11.0
container_name: "${COMPOSE_PROJECT_NAME}-elastic"
environment:
- node.name="${COMPOSE_PROJECT_NAME}-elastic"
- discovery.seed_hosts=elastic
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes="${COMPOSE_PROJECT_NAME}-elastic"
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "http.cors.allow-origin=\"*\""
- "http.cors.enabled=true"
- "http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization"
- "http.cors.allow-credentials=true"
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
networks:
- internal
- stonehenge-network
labels:
- "traefik.enable=true"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-elastic.entrypoints=https"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-elastic.rule=Host(`elastic-${DRUPAL_HOSTNAME}`)"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-elastic.tls=true"
- "traefik.http.services.${COMPOSE_PROJECT_NAME}-elastic.loadbalancer.server.port=9200"
- "traefik.docker.network=stonehenge-network"
- "traefik.port=9200"
idp:
container_name: "${COMPOSE_PROJECT_NAME}-idp"
image: druidfi/saml-idp:1.19.1
environment:
SIMPLESAMLPHP_IDP_BASEURLPATH: "https://idp-${DRUPAL_HOSTNAME}/simplesaml/"
SIMPLESAMLPHP_SP_ENTITY_ID: "https://${DRUPAL_HOSTNAME}/saml/metadata"
SIMPLESAMLPHP_SP_ASSERTION_CONSUMER_SERVICE: "https://${DRUPAL_HOSTNAME}/saml/acs"
SIMPLESAMLPHP_SP_SINGLE_LOGOUT_SERVICE: "https://${DRUPAL_HOSTNAME}/saml/logout"
volumes:
- ./conf/local_idp_authsources.php:/var/www/simplesamlphp/config/authsources.php
labels:
- "traefik.enable=true"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-idp.entrypoints=https"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-idp.rule=Host(`idp-${DRUPAL_HOSTNAME}`)"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}-idp.tls=true"
- "traefik.http.services.${COMPOSE_PROJECT_NAME}-idp.loadbalancer.server.port=8080"
- "traefik.docker.network=stonehenge-network"
networks:
- internal
- stonehenge-network
redis:
container_name: "${COMPOSE_PROJECT_NAME}-redis"
image: redis:6-alpine
networks:
- internal
# varnish:
# container_name: "${COMPOSE_PROJECT_NAME}-varnish"
# image: druidfi/varnish:6-drupal
# environment:
# VARNISH_BACKEND_HOST: "${COMPOSE_PROJECT_NAME}-app"
# depends_on:
# - app
# networks:
# - internal
# - stonehenge-network
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.${COMPOSE_PROJECT_NAME}-varnish.entrypoints=https"
# - "traefik.http.routers.${COMPOSE_PROJECT_NAME}-varnish.rule=Host(`varnish-${DRUPAL_HOSTNAME}`)"
# - "traefik.http.routers.${COMPOSE_PROJECT_NAME}-varnish.tls=true"
# - "traefik.http.services.${COMPOSE_PROJECT_NAME}-varnish.loadbalancer.server.port=6081"
# - "traefik.docker.network=stonehenge-network"
networks:
internal:
external: false
stonehenge-network:
external: true
volumes:
data01:
driver: local
db_data:
ssh:
name: stonehenge-ssh
external: true