create-directus-docker 1.7.3 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-directus-docker",
3
3
  "description": "An installer for Dockerized Directus + MySQL + Adminer + GraphQL Sandbox with a helper Node app",
4
- "version": "1.7.3",
4
+ "version": "1.7.4",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "Dave Kobrenski",
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/rollmug/directus-mysql-template"
22
+ "url": "git+https://github.com/rollmug/directus-mysql-template.git"
23
23
  },
24
24
  "homepage": "https://github.com/rollmug/directus-mysql-template#readme",
25
25
  "scripts": {
@@ -39,7 +39,7 @@ services:
39
39
 
40
40
  mysql:
41
41
  container_name: mysql
42
- image: mysql:9.1.0
42
+ image: mysql:9.5.0
43
43
  restart: always
44
44
  healthcheck:
45
45
  test: ['CMD', 'mysqladmin', 'ping', '--silent']
@@ -99,7 +99,7 @@ services:
99
99
 
100
100
  directus:
101
101
  container_name: directus
102
- image: directus/directus:11.12.0
102
+ image: directus/directus:11.13.0
103
103
  restart: always
104
104
  ports:
105
105
  - ${DIRECTUS_PORT}:8055
@@ -121,6 +121,8 @@ services:
121
121
  DB_CLIENT: 'mysql'
122
122
  DB_HOST: 'mysql'
123
123
  DB_USER: ${MYSQL_USER}
124
+ PROJECT_OWNER: ${PROJECT_OWNER}
125
+ ACCEPT_TERMS: 'true'
124
126
  DB_PASSWORD: ${MYSQL_PASS}
125
127
  DB_DATABASE: ${MYSQL_DB}
126
128
  DB_PORT: '3306'
@@ -2,7 +2,7 @@ services:
2
2
 
3
3
  mysql:
4
4
  container_name: mysql
5
- image: mysql:9.1.0
5
+ image: mysql:9.5.0
6
6
  restart: always
7
7
  healthcheck:
8
8
  test: ['CMD', 'mysqladmin', 'ping', '--silent']
@@ -62,7 +62,7 @@ services:
62
62
 
63
63
  directus:
64
64
  container_name: directus
65
- image: directus/directus:11.12.0
65
+ image: directus/directus:11.13.0
66
66
  restart: always
67
67
  ports:
68
68
  - ${DIRECTUS_PORT}:8055
@@ -82,6 +82,8 @@ services:
82
82
  DB_CLIENT: 'mysql'
83
83
  DB_HOST: 'mysql'
84
84
  DB_USER: ${MYSQL_USER}
85
+ PROJECT_OWNER: ${PROJECT_OWNER}
86
+ ACCEPT_TERMS: 'true'
85
87
  DB_PASSWORD: ${MYSQL_PASS}
86
88
  DB_DATABASE: ${MYSQL_DB}
87
89
  DB_PORT: '3306'
@@ -1,5 +1,9 @@
1
1
  # This is a sample .env file with all possible options
2
2
 
3
+ # Directus Instance Owner
4
+ # this is to comply with the Directus BSL License 1.1
5
+ PROJECT_OWNER="you@email"
6
+
3
7
  # Email and password to login to Directus:
4
8
  ADMIN_EMAIL="you@email"
5
9
  ADMIN_PASSWORD="s0mEpa55w0rd"
@@ -14,6 +18,9 @@ MYSQL_DB="directus"
14
18
  # Set a root password for MySQL to something secure:
15
19
  MYSQL_ROOT_PASS="s0mEpa55w0rd"
16
20
 
21
+ # Set a password for redis
22
+ REDIS_PASSWORD="s0mEpa55w0rd"
23
+
17
24
  # Set the domain for directus to use:
18
25
  # eg, https://mydomain.com
19
26
  # in local dev environments, just leave it set to localhost:port
@@ -97,6 +97,21 @@ try {
97
97
  }
98
98
  }
99
99
  },
100
+ {
101
+ name: 'PROJECT_OWNER',
102
+ message: "Directus Instance Owner (email):",
103
+ default: git.email,
104
+ validate: (email) => {
105
+ let valid = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)
106
+
107
+ if (valid) {
108
+ return true;
109
+ } else {
110
+ console.log(chalk.red("\nPlease enter a valid email."))
111
+ return false;
112
+ }
113
+ }
114
+ },
100
115
  {
101
116
  name: 'MYSQL_USER',
102
117
  message: "Specify a user name for your MySQL database:",
@@ -137,7 +152,10 @@ try {
137
152
  console.log(answers);
138
153
 
139
154
  var writeStream = fs.createWriteStream(envPath);
140
- writeStream.write("# Environment variables\n\n# Email and password to login to Directus:\n");
155
+ writeStream.write("# Environment variables\n\n# Directus Instance Owner\n# This is to comply with the Directus BSL License 1.1\n");
156
+ writeStream.write(`PROJECT_OWNER="${answers.PROJECT_OWNER}"`);
157
+ writeStream.write("\n\n");
158
+ writeStream.write("# Email and password to login to Directus:\n");
141
159
  writeStream.write(`ADMIN_EMAIL="${answers.ADMIN_EMAIL}"`);
142
160
  writeStream.write("\n");
143
161
  writeStream.write(`ADMIN_PASSWORD="${answers.ADMIN_PASSWORD}"`);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus-mysql-docker",
3
- "version": "1.3.7",
3
+ "version": "1.4.0",
4
4
  "description": "A helper app to configure Directus on Docker with MySQL, Adminer, and Apollo GraphQL Sandbox",
5
5
  "main": "./lib/index.js",
6
6
  "type": "module",