-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.42 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
version: '3.9'
services:
wordpress:
image: 'wordpress:latest'
volumes:
- 'wordpress-files:/var/www/html'
- './conf/php.ini:/usr/local/etc/php/conf.d/php.ini:ro'
environment:
- SERVICE_FQDN_WORDPRESS
- WORDPRESS_DB_HOST=mariadb
- WORDPRESS_DB_USER=$SERVICE_USER_WORDPRESS
- WORDPRESS_DB_PASSWORD=$SERVICE_PASSWORD_WORDPRESS
- WORDPRESS_DB_NAME=wordpress
depends_on:
- mariadb
networks:
- wp_network
litespeed:
image: 'litespeedtech/openlitespeed:latest'
volumes:
- 'wordpress-files:/var/www/html'
- './conf:/usr/local/lsws/custom_conf' # Changed this line
- 'litespeed-logs:/usr/local/lsws/logs'
environment:
- OLS_DB_HOST=mariadb
- OLS_DB_USER=$SERVICE_USER_WORDPRESS
- OLS_DB_PASSWORD=$SERVICE_PASSWORD_WORDPRESS
- OLS_DB_NAME=wordpress
- CUSTOM_CONF_PATH=/usr/local/lsws/custom_conf # Added this line
depends_on:
- wordpress
- mariadb
networks:
- wp_network
mariadb:
image: 'mariadb:11'
volumes:
- 'mariadb-data:/var/lib/mysql'
environment:
- MYSQL_ROOT_PASSWORD=$SERVICE_PASSWORD_ROOT
- MYSQL_DATABASE=wordpress
- MYSQL_USER=$SERVICE_USER_WORDPRESS
- MYSQL_PASSWORD=$SERVICE_PASSWORD_WORDPRESS
networks:
- wp_network
networks:
wp_network:
driver: bridge
volumes:
wordpress-files:
mariadb-data:
litespeed-logs: