-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathcompose.yml
98 lines (93 loc) · 2.48 KB
/
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
86
87
88
89
90
91
92
93
94
95
96
97
98
services:
wp:
image: authldap_test:${WORDPRESS_VERSION:-6.7}-${PHP_VERSION:-8.4}
build:
context: dockersetup
dockerfile: Dockerfile_wordpress
args:
PHP_VERSION: ${PHP_VERSION:-8.4}
WORDPRESS_VERSION: ${WORDPRESS_VERSION:-6.7}
volumes:
- .:/var/www/html/wp-content/plugins/authldap
- wordpress:/var/www/html
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: "wordpress"
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: "wppasswd"
WORDPRESS_DEBUG: 1
depends_on:
db:
condition: service_healthy
openldap:
condition: service_healthy
links:
- db
nginx:
image: nginx
volumes:
- ./dockersetup/nginx/default.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html/wp-content/plugins/authldap
- wordpress:/var/www/html
#ports:
# - 80:80
links:
- wp:wp
depends_on:
- wp
wpcli:
image: wordpress:cli
volumes:
- wordpress:/var/www/html
- .:/var/www/html/wp-content/plugins/authldap
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: "wordpress"
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: "wppasswd"
user: "33:33"
depends_on:
- db
- wp
db:
image: mysql:latest # https://hub.docker.com/_/mysql/ - or mariadb https://hub.docker.com/_/mariadb
#ports:
# - 3306:3306 # change ip if required
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci'
]
volumes:
- ./wp-data:/docker-entrypoint-initdb.d
- db_data:/var/lib/mysql
environment:
MYSQL_DATABASE: "wordpress"
MYSQL_ROOT_PASSWORD: "wppasswd"
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
timeout: 1s
retries: 10
interval: 2s
openldap:
image: osixia/openldap:latest
# build:
# context: dockersetup
# dockerfile: Dockerfile_ldap
ports:
- 3389:389
volumes:
- ./.ci/50-init.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/50-bootstrap.ldif
command: "--copy-service --loglevel debug"
restart: unless-stopped
environment:
LDAP_LOG_LEVEL: "0"
LDAP_TLS: "false"
LDAP_ADMIN_PASSWORD: "insecure"
healthcheck:
test: ["CMD", "/usr/bin/ldapsearch", "-H", "ldap://localhost/", "-x", "-s", "base", "-LLL", "+"]
timeout: 1s
retries: 10
interval: 2s
volumes:
db_data:
wordpress: