-
Notifications
You must be signed in to change notification settings - Fork 88
/
docker-compose-apache.yml
56 lines (51 loc) · 2.17 KB
/
docker-compose-apache.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
services:
acme-keycloak-1:
extends:
file: ../docker-compose.yml
service: acme-keycloak
environment:
KEYCLOAK_FRONTEND_URL: https://id.acme.test:3443/auth
depends_on:
acme-keycloak-db:
condition: service_healthy
acme-keycloak-2:
extends:
file: ../docker-compose.yml
service: acme-keycloak
environment:
KEYCLOAK_FRONTEND_URL: https://id.acme.test:3443/auth
depends_on:
acme-keycloak-db:
condition: service_healthy
acme-keycloak-db:
extends:
file: ../docker-compose.yml
service: acme-keycloak-db
acme-apache-lb:
image: httpd:2.4.48-alpine
# logging:
# driver: none
volumes:
# relative paths needs to be relative to the docker-compose cwd.
- ./id.acme.test.conf:/etc/apache2/sites-enabled/id.acme.test.conf:z
- ../../../../config/stage/dev/tls/acme.test+1.pem:/usr/local/apache2/conf/server.crt:z
- ../../../../config/stage/dev/tls/acme.test+1-key.pem:/usr/local/apache2/conf/server.key:z
command: >
sh -c "sed -i -e 's/^#\(Include .*httpd-ssl.conf\)/\1/' conf/httpd.conf &&
sed -i -e 's/^#\(LoadModule .*mod_ssl.so\)/\1/' conf/httpd.conf &&
sed -i -e 's/^#\(LoadModule .*mod_socache_shmcb.so\)/\1/' conf/httpd.conf &&
sed -i -e 's/^#\(LoadModule .*mod_slotmem_shm.so\)/\1/' conf/httpd.conf &&
sed -i -e 's/^#\(LoadModule .*mod_watchdog.so\)/\1/' conf/httpd.conf &&
sed -i -e 's/^#\(LoadModule .*mod_proxy.so\)/\1/' conf/httpd.conf &&
sed -i -e 's/^#\(LoadModule .*mod_proxy_http.so\)/\1/' conf/httpd.conf &&
sed -i -e 's/^#\(LoadModule .*mod_proxy_balancer.so\)/\1/' conf/httpd.conf &&
sed -i -e 's/^#\(LoadModule .*mod_proxy_hcheck.so\)/\1/' conf/httpd.conf &&
sed -i -e 's/^#\(LoadModule .*mod_lbmethod_byrequests.so\)/\1/' conf/httpd.conf &&
sed -i 's/#*[Cc]ustom[Ll]og/#CustomLog/g' conf/httpd.conf &&
echo 'Include /etc/apache2/sites-enabled/id.acme.test.conf' >> conf/httpd.conf &&
exec httpd-foreground"
ports:
- "3443:443"
depends_on:
- acme-keycloak-1
- acme-keycloak-2