-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-sample.yml
51 lines (51 loc) · 1.58 KB
/
docker-compose-sample.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
version: '3.0'
########## SERVICES ########
services:
###### xshok-openlitespeed-php
openlitespeed:
image: extremeshok/openlitespeed-php:latest
shm_size: 128M
depends_on:
- redis
- mysql
volumes:
# volume mounts
- vol-www-vhosts:/var/www/vhosts/:rw
- vol-www-configs:/etc/openlitespeed/:rw
- vol-www-logs:/usr/local/lsws/logs/:rw
environment:
#optional enviromental varibles
- TZ=${TZ}
- VHOST_CRON=true
- VHOST_MONITOR_CERTS=true
- VHOST_FIX_PERMISSIONS=true
- VHOST_FIX_PERMISSIONS_FOLDERS=true
- VHOST_FIX_PERMISSIONS_FILES=true
- VHOST_FIX_PERMISSIONS_FOLDERS_FORCE=false
- VHOST_FIX_PERMISSIONS_FILES_FORCE=false
- VHOST_FIX_PERMISSIONS_FOLDERS_INTERVAL_DAYS=7
- VHOST_FIX_PERMISSIONS_FILE_INTERVAL_DAYS=7
- VHOST_AUTOUPDATE=true
- VHOST_AUTOUPDATE_WP=true
- VHOST_AUTOUPDATE_DEBUG=false
- PHP_TIMEZONE=${TZ}
- PHP_REDIS_SESSIONS=yes
- PHP_REDIS_HOST=redis
- PHP_REDIS_PORT=6379
- PHP_MAX_UPLOAD_SIZE=32
- PHP_MAX_TIME=300
- PHP_MEMORY_LIMIT=256
- PHP_DISABLE_FUNCTIONS=shell_exe
- PHP_SMTP_HOST=mail.yoursmtp.com
- PHP_SMTP_PORT=587
- PHP_SMTP_PASS=securpassword
restart: always
sysctls:
- net.ipv6.conf.all.disable_ipv6=${SYSCTL_IPV6_DISABLED:-0}
dns:
- ${IPV4_NETWORK:-172.22.1}.254
networks:
network:
aliases:
- webserver