Docker not working

@laurent do you have any idea by what this could be caused? I suspect this being somehow caused by the context in which I have my Dockerfile - or should it work without having the git repo around?

This is how my context looks like:

ls -l
total 572
-rw-r--r--.  1 robinopletal robinopletal    383 Jan  4 16:03 appveyor.yml
drwxr-xr-x. 10 robinopletal robinopletal    580 Jan  4 16:03 Assets
-rw-r--r--.  1 robinopletal robinopletal   6002 Jan  4 16:03 BUILD.md
-rw-r--r--.  1 robinopletal robinopletal     32 Jan  4 16:03 _config.yml
-rw-r--r--.  1 robinopletal robinopletal   7147 Jan  4 16:03 CONTRIBUTING.md
-rw-r--r--.  1 robinopletal robinopletal    874 Jan  4 16:03 docker-compose.server-dev.yml
-rw-r--r--.  1 robinopletal robinopletal   1597 Jan  4 16:03 docker-compose.server.yml
-rw-r--r--.  1 robinopletal robinopletal     31 Jan  4 16:03 Dockerfile.db
-rw-r--r--.  1 robinopletal robinopletal   2373 Jan 15 08:37 Dockerfile.server
drwxr-xr-x. 32 robinopletal robinopletal    700 Jan  4 16:03 docs
-rw-r--r--.  1 robinopletal robinopletal   1102 Jan  4 16:03 gulpfile.js
-rw-r--r--.  1 robinopletal robinopletal  15232 Jan  4 16:03 joplin.code-workspace
-rwxr-xr-x.  1 robinopletal robinopletal   7693 Jan  4 16:03 Joplin_install_and_update.sh
-rw-r--r--.  1 robinopletal robinopletal     69 Jan  4 16:03 lerna.json
-rw-r--r--.  1 robinopletal robinopletal   1075 Jan  4 16:03 LICENSE
-rw-r--r--.  1 robinopletal robinopletal    130 Jan  4 16:03 lint-staged.config.js
-rw-r--r--.  1 robinopletal robinopletal   3272 Jan  4 16:03 package.json
-rw-r--r--.  1 robinopletal robinopletal 397762 Jan  4 16:03 package-lock.json
drwxr-xr-x. 15 robinopletal robinopletal    300 Jan  4 16:03 packages
drwxr-xr-x.  8 robinopletal robinopletal    540 Jan  4 16:03 readme
-rw-r--r--.  1 robinopletal robinopletal  82639 Jan  4 16:03 README.md
-rw-r--r--.  1 robinopletal robinopletal    489 Jan  4 16:03 SECURITY.md
-rw-r--r--.  1 robinopletal robinopletal     94 Jan  4 16:03 tsconfig.eslint.json
-rw-r--r--.  1 robinopletal robinopletal    775 Jan  4 16:03 tsconfig.json

Good day.
I installed the server according to the instructions joplin/packages/server/README.md at dev · laurent22/joplin · GitHub

.env
JOPLIN_BASE_URL https://192.168.1.7/joplin
JOPLIN_PORT 22300

build log
Step 11/31 : RUN npm install --ignore-scripts
---> Running in fdb2619911f3
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/f
sevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents
@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x6
4"})

added 1148 packages from 781 contributors and audited 1153 packages in 27.569s

59 packages are looking for funding
run npm fund for details

found 14 low severity vulnerabilities
run npm audit fix to fix them, or npm audit for details
Removing intermediate container fdb2619911f3
---> 5828f8366d27
Step 12/31 : COPY --chown=$user:$user packages/fork-sax/package*.json ./package
s/fork-sax/
---> 5dd72df4c696
Step 13/31 : COPY --chown=$user:$user packages/lib/package*.json ./packages/lib
/
---> 0d41f9d55730
Step 14/31 : COPY --chown=$user:$user packages/renderer/package*.json ./package
s/renderer/
---> 67fd22a58bc2
Step 15/31 : COPY --chown=$user:$user packages/tools/package*.json ./packages/t
ools/
---> 05bc4de6ac69
Step 16/31 : COPY --chown=$user:$user packages/server/package*.json ./packages/
server/
---> cc3716fb27a6
Step 17/31 : COPY --chown=$user:$user lerna.json .
---> ce44b927a694
Step 18/31 : COPY --chown=$user:$user tsconfig.json .
---> 9ae80aa1c890
Step 19/31 : COPY --chown=$user:$user packages/turndown ./packages/turndown
---> 1677cbcfc388
Step 20/31 : COPY --chown=$user:$user packages/turndown-plugin-gfm ./packages/t
urndown-plugin-gfm
---> 72d956732a65
Step 21/31 : COPY --chown=$user:$user packages/fork-htmlparser2 ./packages/fork
-htmlparser2
---> 3b45e4f060e8
Step 22/31 : RUN ls -la /home/$user
---> Running in 63c7350512ef
total 460
drwxr-xr-x 1 joplin joplin 4096 Jan 15 02:07 .
drwxr-xr-x 1 root root 4096 Jan 15 02:06 ..
-rw-r--r-- 1 joplin joplin 220 May 15 2017 .bash_logout
-rw-r--r-- 1 joplin joplin 3526 May 15 2017 .bashrc
drwx------ 3 joplin joplin 4096 Jan 15 02:06 .config
drwxr-xr-x 4 joplin joplin 4096 Jan 15 02:07 .npm
-rw-r--r-- 1 joplin joplin 675 May 15 2017 .profile
-rw-r--r-- 1 joplin joplin 69 Jan 15 02:02 lerna.json
drwxr-xr-x 2 joplin joplin 4096 Jan 15 02:06 logs
drwxr-xr-x 722 joplin joplin 20480 Jan 15 02:07 node_modules
-rw-r--r-- 1 joplin joplin 397762 Jan 15 02:02 package-lock.json
-rw-r--r-- 1 joplin joplin 3469 Jan 15 02:02 package.json
drwxr-xr-x 1 joplin joplin 4096 Jan 15 02:08 packages
-rw-r--r-- 1 joplin joplin 775 Jan 15 02:02 tsconfig.json
Removing intermediate container 63c7350512ef
---> 1920f4c5d292
Step 23/31 : RUN npm run bootstrap
---> Running in 000b9414b444

root@ bootstrap /home/joplin
lerna bootstrap --no-ci

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Bootstrapping 8 packages
lerna info Installing external dependencies
lerna info Symlinking packages and binaries
lerna info lifecycle @joplin/fork-htmlparser2@4.1.15~prepare: @joplin/fork-html
parser2@4.1.15
lerna info lifecycle @joplin/turndown-plugin-gfm@1.0.19~prepare: @joplin/turndo
wn-plugin-gfm@1.0.19
lerna info lifecycle @joplin/turndown@4.0.37~prepare: @joplin/turndown@4.0.37

@joplin/fork-htmlparser2@4.1.15 prepare /home/joplin/packages/fork-htmlparser
2
npm run build

@joplin/fork-htmlparser2@4.1.15 build /home/joplin/packages/fork-htmlparser2
tsc

@joplin/turndown-plugin-gfm@1.0.19 prepare /home/joplin/packages/turndown-plu
gin-gfm
npm run build

@joplin/turndown-plugin-gfm@1.0.19 build /home/joplin/packages/turndown-plugi
n-gfm
rollup -c config/rollup.config.cjs.js

src/gfm.js → lib/turndown-plugin-gfm.cjs.js...
created lib/turndown-plugin-gfm.cjs.js in 68ms

@joplin/turndown@4.0.37 prepare /home/joplin/packages/turndown
npm run build

@joplin/turndown@4.0.37 build /home/joplin/packages/turndown
rollup -c config/rollup.config.cjs.js

src/turndown.js → lib/turndown.cjs.js...
created lib/turndown.cjs.js in 305ms
lerna success Bootstrapped 8 packages
Removing intermediate container 000b9414b444
---> a02f88cb7c11
Step 24/31 : COPY --chown=$user:$user packages/fork-sax ./packages/fork-sax
---> f5012bb779eb
Step 25/31 : COPY --chown=$user:$user packages/lib ./packages/lib
---> 003a4d567b73
Step 26/31 : COPY --chown=$user:$user packages/renderer ./packages/renderer
---> af3b7c308f6a
Step 27/31 : COPY --chown=$user:$user packages/tools ./packages/tools
---> 969832c33e3c
Step 28/31 : COPY --chown=$user:$user packages/server ./packages/server
---> 1d698c95882e
Step 29/31 : RUN npm run build
---> Running in e8a324f7f576

root@ build /home/joplin
lerna run build && npm run tsc

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 3 packages: "npm run build"
lerna info run Ran npm script 'build' in '@joplin/turndown-plugin-gfm' in 0.6s:

@joplin/turndown-plugin-gfm@1.0.19 build /home/joplin/packages/turndown-plugi
n-gfm
rollup -c config/rollup.config.cjs.js

lerna info run Ran npm script 'build' in '@joplin/turndown' in 1.0s:

@joplin/turndown@4.0.37 build /home/joplin/packages/turndown
rollup -c config/rollup.config.cjs.js

lerna info run Ran npm script 'build' in '@joplin/fork-htmlparser2' in 5.1s:

@joplin/fork-htmlparser2@4.1.15 build /home/joplin/packages/fork-htmlparser2
tsc

lerna success run Ran npm script 'build' in 3 packages in 5.1s:
lerna success - @joplin/fork-htmlparser2
lerna success - @joplin/turndown-plugin-gfm
lerna success - @joplin/turndown

root@ tsc /home/joplin
lerna run tsc --stream --parallel

lerna notice cli v3.22.1
lerna info versioning independent
lerna info Executing command in 4 packages: "npm run tsc"
@joplin/lib: > @joplin/lib@1.0.16 tsc /home/joplin/packages/lib
@joplin/lib: > node node_modules/typescript/bin/tsc --project tsconfig.json
@joplin/server: > @joplin/server@1.7.0 tsc /home/joplin/packages/server
@joplin/server: > tsc --project tsconfig.json
@joplin/tools: > @joplin/tools@1.0.16 tsc /home/joplin/packages/tools
@joplin/tools: > tsc --project tsconfig.json
@joplin/renderer: > @joplin/renderer@1.0.24 tsc /home/joplin/packages/renderer
@joplin/renderer: > node node_modules/typescript/bin/tsc --project tsconfig.jso
n
lerna success run Ran npm script 'tsc' in 4 packages in 8.3s:
lerna success - @joplin/lib
lerna success - @joplin/renderer
lerna success - @joplin/server
lerna success - @joplin/tools
Removing intermediate container e8a324f7f576
---> b7e6e107b262
Step 30/31 : EXPOSE ${JOPLIN_PORT}
---> Running in 9afa2e156aaa
Removing intermediate container 9afa2e156aaa
---> 1979b322f284
Step 31/31 : CMD [ "npm", "--prefix", "packages/server", "start" ]
---> Running in d25ddf03ade7
Removing intermediate container d25ddf03ade7
---> f2d65f24fc9d

Successfully built f2d65f24fc9d
Successfully tagged joplin_app:latest
WARNING: Image for service app was built because it did not already exist. To r
ebuild this image you must use docker-compose build or docker-compose up --b uild.
Building db
Step 1/2 : FROM postgres:13.1
13.1: Pulling from library/postgres
a076a628af6f: Pull complete
d54fa0e0eb76: Pull complete
8950a7ea6876: Pull complete
1cc02b1df09e: Pull complete
06f548e51228: Pull complete
74665692d4ea: Pull complete
235e34eb13ab: Pull complete
4ad7ef5e2e79: Pull complete
76670339b0f8: Pull complete
496fa0539f99: Pull complete
f32ecbdf3b52: Pull complete
7536b8fe81ac: Pull complete
71dfc17927aa: Pull complete
fd48bac409bb: Pull complete
Digest: sha256:ec74afc9fa969a235462c27017a3fe73a05c9d4725d7e4afbe2ba6eb82fdfc87
Status: Downloaded newer image for postgres:13.1
---> acf5fb8bfd76
Step 2/2 : EXPOSE 5432
---> Running in 4d5ff6ba79ee
Removing intermediate container 4d5ff6ba79ee
---> 9151db4f1e83

Successfully built 9151db4f1e83
Successfully tagged joplin_db:latest
WARNING: Image for service db was built because it did not already exist. To re
build this image you must use docker-compose build or docker-compose up --bu ild.
Creating joplin_db_1 ... done
Creating joplin_app_1 ... done

I go to the server http://192.168.1.7:22300/
in response to me


I follow the link Back to the login page

in response to me
Unable to access site Site 192.168.1.7 does not allow connection.
Try the following:

Check your internet connection.
Check your proxy and firewall settings.

I`m Running NGINX

in response to me
Page unavailable Site 192.168.1.7 did not send data.

Tell me what I'm doing wrong. How to start the server.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.