1
1
# App info
2
- APP_NAME='YourAppName'
3
- APP_TYPE='wordpress'
4
- APP_DOMAIN='your-app-domain.loc'
5
- APP_PORT=8080
6
- APP_URL="http://${APP_DOMAIN}"
7
- # Use url with unique port to run project without proxy
8
- #APP_URL="http://${APP_DOMAIN}:${APP_PORT}"
9
-
10
-
11
- # Wordpress app url
12
- WP_SITEURL="${APP_URL}"
13
- WP_HOME="${APP_URL}"
14
-
15
-
16
- # Enviroment type
17
- # wp_get_environment_type
18
- #WP_ENVIRONMENT_TYPE='local'
19
- WP_ENVIRONMENT_TYPE='development'
20
- #WP_ENVIRONMENT_TYPE='staging'
21
- #WP_ENVIRONMENT_TYPE='production'
22
- # Do not forget to run docker-compose in prod mode
23
- # docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
24
-
25
-
26
- # Debug
27
- WP_DEBUG=1
28
- WP_DEBUG_DISPLAY=0
29
- SK_LOG_DIR='/var/log/wordpress'
30
- WP_DEBUG_LOG="${SK_LOG_DIR}/debug.log"
31
- #AQ_RESIZE_DEBUG
32
-
2
+ APP_NAME=YourAppName
3
+ APP_TYPE=wordpress
4
+ APP_PROTOCOL=http
5
+ APP_DOMAIN=your-app-domain.loc
6
+ APP_PORT=80
7
+ # Use 80 (or 443) port with proxy or if your app is single on server
8
+ # Use another unique port if you want URL like http://your-app-domain.com:8080
9
+ #
10
+ # If port != 80 and port != 443 WordPress Home url will be with port
11
+ # Result URL will be
12
+ # if (APP_PORT != 80 && APP_PORT != 443 ) {
13
+ # URL = $APP_PROTOCOL://$APP_DOMAIN:$APP_PORT
14
+ # } else {
15
+ # URL = $APP_PROTOCOL://$APP_DOMAIN
16
+ # }
17
+
18
+
19
+ ## WordPress Constants
33
20
34
21
# DataBase options
35
- MYSQL_HOST='database'
36
- MYSQL_ROOT_USER='root'
37
- MYSQL_ROOT_PASSWORD='your_root_password'
38
- MYSQL_DATABASE='wordpress'
22
+ # Add credentials for database, use a password generator
23
+ MYSQL_HOST=database
24
+ MYSQL_ROOT_USER=root
25
+ MYSQL_ROOT_PASSWORD=your_root_password
26
+ MYSQL_DATABASE=wordpress
39
27
# DB_PREFIX='wp_'
40
- MYSQL_USER=' your_wordpress_database_user'
41
- MYSQL_PASSWORD=' your_wordpress_database_password'
28
+ MYSQL_USER=your_wordpress_database_user
29
+ MYSQL_PASSWORD=your_wordpress_database_password
42
30
43
31
44
32
# Authentication unique keys and salts
33
+ # If disabled, it will be generated automatically
45
34
# Generate your keys here: https://api.wordpress.org/secret-key/1.1/salt/ ??
46
35
# WORDPRESS_AUTH_KEY='generateme'
47
36
# WORDPRESS_SECURE_AUTH_KEY='generateme'
@@ -53,28 +42,67 @@ MYSQL_PASSWORD='your_wordpress_database_password'
53
42
# WORDPRESS_NONCE_SALT='generateme'
54
43
55
44
45
+ # Environment type
46
+ # Use function wp_get_environment_type() to operate with it
47
+ #WP_ENVIRONMENT_TYPE=local
48
+ WP_ENVIRONMENT_TYPE=development
49
+ #WP_ENVIRONMENT_TYPE=staging
50
+ #WP_ENVIRONMENT_TYPE=production
51
+
52
+
53
+ # Debug
54
+ WP_DEBUG=1
55
+ WP_DEBUG_DISPLAY=0
56
+ SK_LOG_DIR="/var/log/wordpress"
57
+ WP_DEBUG_LOG="${SK_LOG_DIR}/debug.log"
58
+ #AQ_RESIZE_DEBUG
59
+
60
+
56
61
# Server capacity
57
- WP_MEMORY_LIMIT='256M'
58
- WP_MAX_MEMORY_LIMIT='512M'
62
+ WP_MEMORY_LIMIT=256M
63
+ WP_MAX_MEMORY_LIMIT=512M
64
+
65
+ # Cron
66
+ DISABLE_WP_CRON=1
67
+
68
+
69
+ # Redis
70
+ WP_REDIS_HOST=redis
71
+ WP_REDIS_PORT=6379
72
+ WP_REDIS_PREFIX=3vYh697fFbvggh97qof2dfGHmrDdfvUsuh
73
+ WP_REDIS_MAXTTL=1
74
+
75
+
76
+ # sSMTP config
77
+ # See an example https://www.wordpressdocker.com/mailgun-ssmtp/
78
+ SSMTP_ROOT=postmaster
79
+ SSMTP_MAILHUB=mail:25
80
+
81
+ SSMTP_AUTHPASS=MyPassword
82
+ SSMTP_USETLS=YES
83
+ SSMTP_USESTARTTLS=YES
84
+ SSMTP_REWRITEDOMAIN=localhost
85
+ SSMTP_HOSTNAME=localhost
86
+ SSMTP_FROMLINEOVERRIDE=YES
87
+ SSMTP_DEBUG=NO
59
88
89
+ SSMTP_REVALIASES=root:
[email protected] :mailhub.your.domain[:port]
90
+
91
+ ## Other Constants
60
92
61
93
# Backup database and media files cron job
62
94
# Edit ./sh/backup/backup-crontab.template file to setup backup time. Changes will apply after backup init
63
95
#APP_WP_BACKUP_ENABLE=1
64
96
# Change destination folder to your host crontab directory if it is different
65
- #APP_HOST_SYSTEM_CRON_DIR='/etc/cron.d'
97
+ #APP_HOST_SYSTEM_CRON_DIR="/etc/cron.d"
98
+
66
99
67
100
68
- # Redis
69
- WP_REDIS_HOST='redis'
70
- WP_REDIS_PORT=6379
71
- WP_CACHE_KEY_SALT='3vYh697fFbvggh97qof2dfGHmrDdfvUsuh'
72
- WP_REDIS_MAXTTL=60*60*24*7
73
101
74
102
75
103
# Digital Ocean Spaces (media in cloud)
76
104
#define('AS3CF_SETTINGS', serialize([
77
105
# 'provider' => 'do',
78
106
# 'access-key-id' => getenv('DO_ACCESS_KEY'),
79
107
# 'secret-access-key' => getenv('DO_SECRET_KEY'),
80
- #]));
108
+ #]));
0 commit comments