create-directus-docker 1.6.7 → 1.6.9
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.6.
|
|
4
|
+
"version": "1.6.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Dave Kobrenski",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"copy:compose": "copy-file ../directus-mysql-template/docker-compose.yml ./templates/default/docker-compose.yml",
|
|
30
30
|
"copy:compose-nginx": "copy-file ../directus-mysql-template/docker-compose-nginx.yml ./templates/default/docker-compose-nginx.yml",
|
|
31
31
|
"copy:readme": "copy-file ../directus-mysql-template/README.md ./templates/default/README.md",
|
|
32
|
-
"copy:lib": "copyfiles --flat ../directus-mysql-template/lib/*.js ./templates/default/lib"
|
|
32
|
+
"copy:lib": "copyfiles --flat ../directus-mysql-template/lib/*.js ./templates/default/lib",
|
|
33
|
+
"copy:conf": "copy-file ../directus-mysql-template/custom_proxy_settings.conf ./templates/default/custom_proxy_settings.conf"
|
|
33
34
|
},
|
|
34
35
|
"files": [
|
|
35
36
|
"src",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
client_max_body_size 10m;
|
|
@@ -39,7 +39,7 @@ services:
|
|
|
39
39
|
|
|
40
40
|
mysql:
|
|
41
41
|
container_name: mysql
|
|
42
|
-
image: mysql:9.0
|
|
42
|
+
image: mysql:9.1.0
|
|
43
43
|
restart: always
|
|
44
44
|
healthcheck:
|
|
45
45
|
test: ['CMD', 'mysqladmin', 'ping', '--silent']
|
|
@@ -92,7 +92,7 @@ services:
|
|
|
92
92
|
|
|
93
93
|
directus:
|
|
94
94
|
container_name: directus
|
|
95
|
-
image: directus/directus:11.
|
|
95
|
+
image: directus/directus:11.3.5
|
|
96
96
|
restart: always
|
|
97
97
|
ports:
|
|
98
98
|
- ${DIRECTUS_PORT}:8055
|
|
@@ -41,6 +41,7 @@ try {
|
|
|
41
41
|
console.log("Follow the prompts to configure Directus and MySQL.\n");
|
|
42
42
|
|
|
43
43
|
let git = await gitData();
|
|
44
|
+
let mode = 0o777;
|
|
44
45
|
|
|
45
46
|
if (fs.existsSync(path.join(rootPath, 'mysql')) === false) {
|
|
46
47
|
fs.mkdir(path.join(rootPath, 'mysql'), () => {
|
|
@@ -49,8 +50,8 @@ try {
|
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
if (fs.existsSync(path.join(rootPath, 'directus')) === false) {
|
|
52
|
-
fs.mkdir(path.join(rootPath, 'directus'), () => {
|
|
53
|
-
fs.mkdir(path.join(rootPath, 'directus/uploads'), () => {
|
|
53
|
+
fs.mkdir(path.join(rootPath, 'directus'), { mode }, () => {
|
|
54
|
+
fs.mkdir(path.join(rootPath, 'directus/uploads'), { mode }, () => {
|
|
54
55
|
//console.log(`'directus' directory created.`);
|
|
55
56
|
});
|
|
56
57
|
});
|