ghost 和nginx 没有启动起来
求大佬帮助,docker for win10,日志如下:
E:\Learn\docker\ghost>docker-compose up
Creating ghost_db_1 ... done
Creating ghost_ghost-app_1 ... done
Creating ghost_nginx_1 ... done
Attaching to ghost_db_1, ghost_ghost-app_1, ghost_nginx_1
db_1 | 2019-08-14T07:49:18.093256Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
db_1 | 2019-08-14T07:49:18.100349Z 0 [Note] mysqld (mysqld 5.7.15) starting as process 1 ...
db_1 | 2019-08-14T07:49:18.117067Z 0 [Note] InnoDB: PUNCH HOLE support available
db_1 | 2019-08-14T07:49:18.117148Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
db_1 | 2019-08-14T07:49:18.117155Z 0 [Note] InnoDB: Uses event mutexes
db_1 | 2019-08-14T07:49:18.117160Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
db_1 | 2019-08-14T07:49:18.117164Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
db_1 | 2019-08-14T07:49:18.117168Z 0 [Note] InnoDB: Using Linux native AIO
db_1 | 2019-08-14T07:49:18.117580Z 0 [Note] InnoDB: Number of pools: 1
db_1 | 2019-08-14T07:49:18.117912Z 0 [Note] InnoDB: Using CPU crc32 instructions
db_1 | 2019-08-14T07:49:18.120801Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
db_1 | 2019-08-14T07:49:18.132104Z 0 [Note] InnoDB: Completed initialization of buffer pool
db_1 | 2019-08-14T07:49:18.137374Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
db_1 | 2019-08-14T07:49:18.647438Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
db_1 | 2019-08-14T07:49:19.109763Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
db_1 | 2019-08-14T07:49:19.111112Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
db_1 | 2019-08-14T07:49:19.659733Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
db_1 | 2019-08-14T07:49:19.667312Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
db_1 | 2019-08-14T07:49:19.667872Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
db_1 | 2019-08-14T07:49:19.668479Z 0 [Note] InnoDB: Waiting for purge to start
db_1 | 2019-08-14T07:49:19.720003Z 0 [Note] InnoDB: 5.7.15 started; log sequence number 12135788
ghost-app_1 | npm ERR! path /var/lib/ghost/package.json
db_1 | 2019-08-14T07:49:19.721122Z 0 [Note] Plugin 'FEDERATED' is disabled.
ghost-app_1 | npm ERR! code ENOENT
nginx_1 | 2019/08/14 07:49:28 [emerg] 1#1: unknown directive "worker" in /etc/nginx/nginx.conf:1
nginx_1 | nginx: [emerg] unknown directive "worker" in /etc/nginx/nginx.conf:1
ghost-app_1 | npm ERR! errno -2
db_1 | 2019-08-14T07:49:19.764900Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
db_1 | 2019-08-14T07:49:19.983885Z 0 [Warning] Failed to set up SSL because of the following SSL library error: SSL context is not usable without certificate and private key
ghost-app_1 | npm ERR! syscall open
db_1 | 2019-08-14T07:49:19.985465Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
db_1 | 2019-08-14T07:49:19.985546Z 0 [Note] IPv6 is available.
db_1 | 2019-08-14T07:49:19.985556Z 0 [Note] - '::' resolves to '::';
db_1 | 2019-08-14T07:49:19.985572Z 0 [Note] Server socket created on IP: '::'.
db_1 | 2019-08-14T07:49:20.288244Z 0 [Note] InnoDB: Buffer pool(s) load completed at 190814 7:49:20
db_1 | 2019-08-14T07:49:20.453432Z 0 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
db_1 | 2019-08-14T07:49:20.454526Z 0 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
db_1 | 2019-08-14T07:49:21.045682Z 0 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
ghost-app_1 | npm ERR! enoent ENOENT: no such file or directory, open '/var/lib/ghost/package.json'
db_1 | 2019-08-14T07:49:21.567034Z 0 [Note] Event Scheduler: Loaded 0 events
ghost-app_1 | npm ERR! enoent This is related to npm not being able to find a file.
ghost-app_1 | npm ERR! enoent
ghost-app_1 |
ghost-app_1 | npm ERR! A complete log of this run can be found in:
db_1 | 2019-08-14T07:49:21.567371Z 0 [Note] mysqld: ready for connections.
db_1 | Version: '5.7.15' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)
ghost-app_1 | npm ERR! /root/.npm/_logs/2019-08-14T07_49_23_292Z-debug.log
ghost_ghost-app_1 exited with code 254