Commit Graph

34 Commits

Author SHA1 Message Date
renovate[bot]
02228c04ef chore(deps): update redis docker tag to v8.2.1 (#13603)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-20 14:14:31 -04:00
renovate[bot]
62d15a0e05 chore(deps): update postgres docker tag to v17.6 (#13599)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-15 10:01:56 -04:00
renovate[bot]
25bc9ba00b chore(deps): update redis docker tag to v8.2.0 (#13577)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 18:01:42 -04:00
renovate[bot]
1b80910e80 chore(deps): update redis docker tag to v8.0.3 (#13539)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-08 14:09:15 -04:00
renovate[bot]
166aaa7ab9 chore(deps): update redis docker tag to v8.0.2 (#13465)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-06 11:08:25 -04:00
renovate[bot]
fbe97b4e91 chore(deps): update redis docker tag to v8.0.1 (#13415)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-14 12:38:22 -04:00
renovate[bot]
1df7313c99 chore(deps): update redis docker tag to v8 (#13387)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 22:32:58 -04:00
renovate[bot]
d319b0aaad chore(deps): update postgres docker tag to v17.5 (#13398)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-11 22:32:45 -04:00
renovate[bot]
7800016f2f chore(deps): update redis docker tag to v7.4.3 (#13358)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-25 09:04:15 -04:00
renovate[bot]
cba2bc5ecf chore(deps): update postgres docker tag to v17.4 (#13196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-23 19:18:45 -05:00
renovate[bot]
47e28a0e3e chore(deps): update postgres docker tag to v17.3 (#13162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-18 10:49:36 -05:00
renovate[bot]
fd6f3ee63b chore(deps): update redis docker tag to v7.4.2 (#13033)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 15:43:57 -05:00
Matthew M.
59df4f39be Update docker-compose.yml (#12949)
Remove version attribute - obsolete
2024-12-05 18:38:59 -05:00
renovate[bot]
036f456460 chore(deps): update postgres docker tag to v17.2 (#12931)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-23 09:37:23 -05:00
renovate[bot]
0d0f9144fe chore(deps): update postgres docker tag to v17.1 (#12915)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-15 11:17:13 -05:00
renovate[bot]
e7cba3417c chore(deps): update redis docker tag to v7.4.1 (#12836)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-09 19:57:09 -04:00
renovate[bot]
d7299f9040 chore(deps): update postgres docker tag to v17 (#12829)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-30 11:01:25 -04:00
renovate[bot]
a2a30ebda1 chore(deps): update redis docker tag to v7.4.0 (#12712)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 12:35:47 -04:00
renovate[bot]
948d308050 chore(deps): update postgres docker tag to v16.4 (#12726)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-09 15:57:27 -04:00
renovate[bot]
8f6ef987ff chore(deps): update postgres docker tag to v16.3 (#12576)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-27 10:38:29 -04:00
renovate[bot]
fc29ea8514 chore(deps): update redis docker tag to v7.2.5 (#12588)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-21 10:44:20 -04:00
Barış Soner Uşaklı
fb53bbca1e Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2024-05-15 11:26:09 -04:00
Barış Soner Uşaklı
135962d9c5 Merge branch 'master' into develop 2024-05-15 11:26:03 -04:00
renovate[bot]
7a8116a471 chore(deps): update redis docker tag to v7.2.4 (#12272)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-14 10:24:35 -04:00
Opliko
bc807c4629 fix: some issues with "small" docker improvements (#12564)
* fix: support previous FORCE_BUILD_BEFORE_START variable too

* fix: attempt to fix permission issues and inform properly on failure

* fix: profile-gate redis and re-add profile-gated postgres to main file

For now it's better to maintain compatibility - current postgres users will run mongodb unnecessarily withuot changes, but at least it'll still work fine
2024-05-10 20:05:46 -04:00
Barış Soner Uşaklı
31fccc5946 Merge branch 'master' into develop 2024-05-10 11:16:56 -04:00
Opliko
f4f0eb30dc Small docker improvements and fixes (#12335)
* feat: disable uneecessary npm features

disables npm audit, fund and update-notifier for a few second startup speedup

* fix: make default actually defaults not forced values

* feat: upgrade on container changes

* feat: support changing build verb

* fix: use local volumes instead of bind mounts

* fix: save just the hash without any unexpected whitespace

* feat: use run with mount instead of copying for cross-platfomr builds

* ci: try with minimal cache

* ci: don't fetch all branches

* feat: bsic support for other package managers via PACKAGE_MANAGER env var

* refactor: better structured entrypoint

Co-authored-by: NavyStack <137406386+NavyStack@users.noreply.github.com>

* ci: properly cache the node_modules mount

* fix: syntax error

* refactor: fine tune docker-related files

* ci: docker image taging (time, latest)

* fix: remove the trailing slash for correct directory path

* docker: todo- use environment variables to create files

* docker: fix permissions

* docker: fix permissions

* docker: fix stage

* feat: auto-upgrade on package.json changes

* fix: don't profile-gate postgres

---------

Co-authored-by: NavyStack <137406386+NavyStack@users.noreply.github.com>
Co-authored-by: NavyStack <navystack@askfront.com>
2024-05-10 11:10:42 -04:00
renovate[bot]
b8a52863d6 chore(deps): update postgres docker tag to v16.3 (#12555)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-10 11:03:32 -04:00
renovate[bot]
254bad8965 chore(deps): update postgres docker tag to v16.2 (#12338)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-14 10:56:25 -05:00
renovate[bot]
616ff5733a chore(deps): update postgres docker tag to v16.1 (#12167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-14 07:50:59 -05:00
renovate[bot]
5f8a4f3a4e chore(deps): update mongo docker tag to v7 (#12166)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-12 13:52:41 -05:00
renovate[bot]
c41f9a7534 chore(deps): update redis docker tag to v7.2.3 (#12165)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-12 13:52:22 -05:00
Opliko
7f3a9968ef feat: docker improvements (#12031)
* use yarn and debian slim build

* feat: update Dockerfile to use multistage builds

* Create main.yml

* remove some useless things from docker context and assume yarn by default

* remove all dotfiles in docker context

* no need for extra build tools, complain to the module author if there is no alpine build

(cherry picked from commit 90516a3c8399e74c38be7115edb39411ba0d86b9)

* specify the config file location instead of creating it

(cherry picked from commit 38e4295d70682f1049fe671ade96eeccd669d908)

* set explicit config path

(cherry picked from commit 8dcc6f249d099cb8939a95511ec13702491958bc)

* fix docker-compose example to use the exposed volumes

* dockerfile: upgrade alpine to 3.16

* dockerignore: add more ignorable entries

* docker-compose: change the way the docker startup process works

* install: pass config path to child process as well

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* setup: move config file resolution up before setup

This fixes issue with different config file location, which will otherwise default on 'config.json', which means the config save won't save to the file we specified

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-entrypoint: don't fix CONFIG_DIR location but fix default location

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-entrypoint: handle missing config file logic

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* README: add simple notice on how to use it

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* add missing semicolons

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-compose: remove multi override, use one big profile instead

However, Docker Compose doesn't support profile-based dependency and this would probably means we have less guarantee about the liveness of the database. But since this is just a sample configuration it should be fine

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* workflows: remove main.yml, add platforms to buildx matrix in docker.yml

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* workflows: set docker buildx to build for amd64 and arm64 only

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-entrypoint: don't force build everytime before start

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-entrypoint: implement init verb

This would allow you to change between "setup" (automated setup using environmental variables which is the current preferred way to run containerized NodeBB) or "install" (web install that guides user to fill in connection information, which is similar to WordPress)

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* README: mention caveat with MongoDB

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* README: add Docker section placeholder for doc migration

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-entrypoint: add SETUP variable support

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-compose: add force flag to ln on setup

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* docker-compose: fix permission issue; docker-compose: fast exit if still no permission on config dir

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>

* fix: remove redundant FROM

* docs: remove docker stuff (in favour of docs entry, nodebb/docs#78) but add link to cloud install docs

* fix: correctly check if directory is writable

* fix: ignore .docker directory

* fix: multi-arch docker builds and chown performance

* chore: bump database image versions

* fix: move from alpine to slim image

* fix: use omit=dev instead of only=prod

* feat: move entrypoint to install directory

* feat: initialize mongodb user

* feat: use separate rebuild stage

* fix: disable eslint for mongodb script

* fix: remove node_modules bind mount

bind mounts don't save data from container, resulting in a LOONG startup

* feat: prepopulate database defaults for installation

* feat: enable persistence in redis container

* docs: add some comments to the compose file

---------

Signed-off-by: steve <29133953+stevefan1999-personal@users.noreply.github.com>
Co-authored-by: Steve Fan <29133953+stevefan1999-personal@users.noreply.github.com>
Co-authored-by: Steve Fan <19037626d@connect.polyu.hk>
Co-authored-by: Julian Lam <julian@nodebb.org>
2023-11-12 13:38:00 -05:00
Birkhoff Lee
2f515bac07 Add docker-compose.yml (#7966) 2019-10-22 12:23:12 -04:00