create-directus-docker 1.6.1 → 1.6.2

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.1",
4
+ "version": "1.6.2",
5
5
  "type": "module",
6
6
  "author": {
7
7
  "name": "Dave Kobrenski",
@@ -2,7 +2,7 @@ services:
2
2
 
3
3
  mysql:
4
4
  container_name: mysql
5
- image: mysql:8.4.2
5
+ image: mysql:9.0.1
6
6
  restart: always
7
7
  healthcheck:
8
8
  test: ['CMD', 'mysqladmin', 'ping', '--silent']
@@ -17,7 +17,7 @@ services:
17
17
  volumes:
18
18
  - ./mysql:/var/lib/mysql
19
19
  - ./init:/docker-entrypoint-initdb.d
20
- command: --mysql-native-password=ON
20
+ # command: --mysql-native-password=ON
21
21
  environment:
22
22
  MYSQL_USER: ${MYSQL_USER}
23
23
  MYSQL_PASSWORD: ${MYSQL_PASS}
@@ -55,7 +55,7 @@ services:
55
55
 
56
56
  directus:
57
57
  container_name: directus
58
- image: directus/directus:latest
58
+ image: directus/directus:11.1.1
59
59
  restart: always
60
60
  ports:
61
61
  - ${DIRECTUS_PORT}:8055
@@ -14,9 +14,9 @@ export default async function checkRequirements() {
14
14
  process.exit(1);
15
15
  }
16
16
 
17
- if (major < 14) {
17
+ if (major < 18) {
18
18
  console.error(`You are running ${chalk.red(`Node ${nodeVersion}`)}.`);
19
- console.error(`Directus requires ${chalk.green(`Node 14`)} and up.`);
19
+ console.error(`Directus requires ${chalk.green(`Node 18`)} and up.`);
20
20
  console.error('Please update your Node version and try again.');
21
21
  process.exit(1);
22
22
  }
@@ -147,6 +147,10 @@ export default function launchServices() {
147
147
  const check = spawn('docker', ['compose', 'ps', '-a', '--format', 'json']);
148
148
 
149
149
  check.stdout.on('data', (data) => {
150
+ // var tmp = data.toString();
151
+ // var tmpJson = JSON.parse(tmp);
152
+ // console.log(tmpJson);
153
+
150
154
  const q = 'map(select(.Name == "directus")) | .[0] | {Name: .Name, Service: .Service, State: .State}';
151
155
  jq.run(q, data.toString(), { input: 'string' })
152
156
  .then((data) => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus-mysql-docker",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
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",