-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-sample.yml
41 lines (41 loc) · 1.17 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
version: '3.0'
########## SERVICES ########
services:
###### xshok-openlitespeed-php
openlitespeed:
image: extremeshok/openlitespeed-php:latest
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_ENABLE=true
- WP_AUTOUPDATE_ENABLE=true
- WP_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