Compare commits

..

300 Commits

Author SHA1 Message Date
Christian Wolf ef21ea6be3 Added script to fetch full clones
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-12-03 16:03:21 +01:00
Christian Wolf dae008139b Add CLI parameter parsing to bootstrap script
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-12-03 16:03:20 +01:00
Julius Härtl b777c14fa9 docs: Move all docs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-03 16:00:06 +01:00
Julius Härtl e941833242 Merge pull request #241 from juliushaertl/enh/db-cluster 2023-12-03 15:57:47 +01:00
Julius Härtl 6afcd1b4e8 fix: Add mariadb-client to containers
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-03 14:45:52 +01:00
Julius Härtl ccccc6bbdd docs: Hint to the new docs in README
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-03 14:30:38 +01:00
Julius Härtl 2786901674 docs: Add database docs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-03 14:30:38 +01:00
Julius Härtl 76676aadb1 test: add simple playwright login test
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-03 14:30:38 +01:00
Julius Härtl 5049660b77 wip: Add mariadb primary/secondary cluster
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-03 14:30:38 +01:00
Julius Härtl 564251f56e Merge pull request #260 from juliushaertl/fix/memcached 2023-12-03 12:25:45 +01:00
Julius Härtl 4118e9b59d fix: Show progress during clone
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 22:05:52 +01:00
Julius Härtl e6116acb7d fix: Setup hosts during bootstrap and print debug info for existing installations
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 21:47:22 +01:00
Julius Härtl 9854a3c779 docs: Reference tutorial in the README (fix #70)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 21:20:31 +01:00
Julius Härtl 3c06fe3a22 fix: Bring back memcached php extension
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 21:18:08 +01:00
Julius Härtl 6705dd98f4 fix: Clone circles on fresh setups (fix #236)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 21:15:30 +01:00
Julius Härtl a5f404a4a2 fix: Comment out paths in example config (fix #174)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 21:13:29 +01:00
Julius Härtl 42925f47ec fix: Throw error if no source code found (fix #169)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 21:01:41 +01:00
Julius Härtl d43ebeea3e Merge pull request #259 from juliushaertl/renovate/actions-setup-python-4.x 2023-12-02 19:43:43 +01:00
Julius Härtl df936789b1 Merge pull request #258 from juliushaertl/renovate/actions-checkout-4.x 2023-12-02 19:43:33 +01:00
Julius Härtl 0454d2c5be ci: fix docs build on push
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 19:42:35 +01:00
Julius Härtl 1ce9d8fff5 Merge pull request #172 from fflorent/postgres-port-env 2023-12-02 19:35:06 +01:00
Julius Härtl cc210923e9 chore: update gitignore
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 19:30:34 +01:00
Julius Härtl a72e27b09f docs: More docs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 19:30:34 +01:00
Julius Härtl 09f8437f33 fix: cleanup npm version
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 19:30:34 +01:00
Julius Härtl 71fc8c53dc enh: cleanup config handling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 19:30:34 +01:00
Julius Härtl eab103d997 fix: docs action
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 18:20:45 +01:00
renovate[bot] 38fc67b345 chore(deps): update actions/setup-python action to v4 2023-12-02 17:18:50 +00:00
renovate[bot] 03b5c188cb chore(deps): update actions/checkout action to v4 2023-12-02 17:18:46 +00:00
Julius Härtl 3b9ec4f8fd docs: Start separate docs build
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 18:18:28 +01:00
Julius Härtl 85f756d834 fix: Fix onlyoffice secret
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 17:58:40 +01:00
Julius Härtl c67644976d chore: Bump node version in containers
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 13:28:08 +01:00
Julius Härtl b29a0cc0f5 feat: Easy editing of config from outside
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 13:25:50 +01:00
Julius Härtl 0e768bf194 fix: Cleanup docker-compose
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 13:18:34 +01:00
Julius Härtl f56d76cfa3 fix: prepare xdebug config for trace flamegraphs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 13:13:27 +01:00
Julius Härtl d6b30a09cd fix: Use github ref name
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 11:16:35 +01:00
Julius Härtl 0ea040a0b8 fix: Use github ref as tag
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 11:12:17 +01:00
Julius Härtl 9ae50462bb release: Change to two channels for images
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 11:06:07 +01:00
Julius Härtl 18e63accec feat: Add hooks for nextcloud containers (fix #5)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-02 11:06:07 +01:00
Julius Härtl 845e87e1f7 Merge pull request #248 from juliushaertl/renovate/quay.io-keycloak-keycloak-23.x 2023-12-02 10:20:03 +01:00
Julius Härtl 40bfbf83c4 Merge pull request #255 from juliushaertl/enh/php7.3 2023-12-01 21:14:41 +01:00
Julius Härtl b8fbafdc5e fix: Stick to previous xdebug version
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-01 20:12:13 +01:00
Julius Härtl d8d7a068c2 enh: Add php 8.3 container
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-01 18:22:27 +01:00
Julius Härtl 66d84c14bf fix: Remove blackfire default config
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-12-01 15:52:55 +01:00
Julius Härtl 1ab0089ba8 Merge pull request #249 from Antreesy/patch-1 2023-11-27 14:40:38 +01:00
Maksim Sukharev 12c7107e8c Add container for stable28 2023-11-27 14:00:02 +01:00
renovate[bot] 55aa6d8fc0 chore(deps): update quay.io/keycloak/keycloak docker tag to v23 2023-11-23 18:27:24 +00:00
Julius Härtl c11f47354c Update README.md 2023-11-17 12:20:47 +01:00
Julius Härtl 2c60e958d3 Merge pull request #214 from juliushaertl/enh/collection
feat: Switch to protocol environment variable
2023-11-07 13:15:36 +01:00
Julius Härtl 9ef1ca07ba Merge pull request #243 from come-nc/patch-4
Fix syntax problem in docker-compose.yml
2023-11-06 14:24:49 +01:00
Côme Chilliet 7dee65d2e4 Fix syntax problem in docker-compose.yml
services.onlyoffice.environment.USE_UNAUTHORIZED_STORAGE contains true, which is an invalid type, it should be a string, number, or a null
2023-11-06 14:13:42 +01:00
Julius Härtl 5c5c8300dd Some minor fixes
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-11-03 10:01:49 +01:00
Julius Härtl 86a9a32e11 fix: build keycloak url on autosetup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-11-03 09:58:35 +01:00
Julius Härtl 756bf8314c feat: Switch to protocol environment variable
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-11-03 09:58:33 +01:00
Julius Härtl 1f7090c292 Merge pull request #242 from juliushaertl/renovate/elasticsearch-7.x
chore(deps): update elasticsearch docker tag to v7.17.14
2023-11-03 09:57:50 +01:00
renovate[bot] 84401c2d6e chore(deps): update elasticsearch docker tag to v7.17.14 2023-11-03 03:42:59 +00:00
Julius Härtl b067fd3f40 Merge pull request #240 from SystemKeeper/dnsmasq-info 2023-10-28 12:43:10 +02:00
Marcel Müller 1219680197 Add note about dnsmasq container
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2023-10-27 22:53:12 +02:00
Julius Härtl e96c597c91 Merge pull request #237 from Antreesy/patch-1
Remove .crt from the wildcard when create certificate pairs
2023-10-11 13:20:32 +02:00
Maksim Sukharev caacf6aeaa remove .crt from the wildcard when create certificate pairs 2023-10-11 13:01:09 +02:00
Julius Härtl f88176e48e Merge pull request #231 from christianlupus-nextcloud/maintenance/disable-foreign-docker-build
Disable image builing on forked repositories
2023-10-10 09:36:41 +02:00
Julius Härtl 9db91ac472 Merge pull request #230 from frederikb96/master 2023-10-09 08:38:04 +02:00
Julius Härtl 56b1700d85 Merge pull request #234 from christianlupus-nextcloud/fix/disable-blackfire 2023-10-09 08:37:37 +02:00
Christian Wolf b1a80cf985 Fixed typo in YAML file
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-10-03 14:50:53 +02:00
Christian Wolf 172ba459db Fixed blackfire enable/disable scripts
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-09-22 10:33:55 +02:00
Christian Wolf 9f54e05342 Disable image builing on forked repositories
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-09-19 18:02:08 +02:00
Frederik Berg f871df614d Fix syntax error in xdebug.ini 2023-09-19 16:53:23 +02:00
Julius Härtl 7a4b323fdb Merge pull request #226 from juliushaertl/juliushaertl-patch-1 2023-09-15 12:03:15 +02:00
Julius Härtl 299f3aebe4 Update README.md 2023-09-15 12:03:06 +02:00
Julius Härtl c01c76eed3 Merge pull request #224 from SystemKeeper/add-ipv6-to-hosts 2023-09-13 15:43:17 +02:00
Julius Härtl 1ffe09b420 Merge pull request #225 from SystemKeeper/clarify-xdebug-autostart 2023-09-13 15:41:24 +02:00
Marcel Müller bca84afd66 Update docker/configs/php/xdebug.ini
Co-authored-by: Julius Härtl <jus@bitgrid.net>
2023-09-13 15:37:35 +02:00
Marcel Müller 21e56efaac Clarify comment about xdebug autostart
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2023-09-13 15:22:43 +02:00
Marcel Müller d513e7936b Add IPv6 address to /etc/hosts
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de
2023-09-13 15:14:13 +02:00
Julius Härtl 149b7def11 Merge pull request #223 from juliushaertl/renovate/docker-setup-qemu-action-3.x 2023-09-12 14:21:26 +02:00
renovate[bot] e3a63887c7 chore(deps): update docker/setup-qemu-action action to v3 2023-09-12 10:54:22 +00:00
Julius Härtl 2f18f69beb Merge pull request #221 from juliushaertl/renovate/alpine-3.x 2023-09-12 12:54:07 +02:00
Julius Härtl b3cff13b42 Merge pull request #222 from juliushaertl/renovate/docker-setup-buildx-action-3.x 2023-09-12 11:25:31 +02:00
renovate[bot] 9b4e9d9547 chore(deps): update docker/setup-buildx-action action to v3 2023-09-12 09:14:11 +00:00
renovate[bot] 4d83d66a53 chore(deps): update alpine docker tag to v3.18 2023-09-12 09:14:06 +00:00
Julius Härtl 1e11d72e35 Merge pull request #204 from SystemKeeper/add-talk-signaling 2023-09-12 11:13:52 +02:00
Marcel Müller 505105fe17 Build and use janus image
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2023-09-12 10:38:11 +02:00
Julius Härtl daa6cafde4 Merge pull request #220 from juliushaertl/renovate/docker-login-action-3.x 2023-09-12 10:31:52 +02:00
Julius Härtl d304094cea Merge pull request #219 from juliushaertl/renovate/docker-build-push-action-5.x 2023-09-12 10:21:35 +02:00
renovate[bot] 33aa7f815b chore(deps): update docker/login-action action to v3 2023-09-12 08:18:19 +00:00
renovate[bot] 6f9d0dd700 chore(deps): update docker/build-push-action action to v5 2023-09-12 08:18:15 +00:00
Julius Härtl 41a4032401 Merge pull request #216 from juliushaertl/renovate/elasticsearch-7.x 2023-09-08 11:03:53 +02:00
renovate[bot] d62847c04e chore(deps): update elasticsearch docker tag to v7.17.13 2023-09-08 01:37:38 +00:00
Julius Härtl 1cc63c3f5b Merge pull request #215 from juliushaertl/renovate/actions-checkout-4.x 2023-09-04 17:02:51 +02:00
renovate[bot] 55a2ce4c10 chore(deps): update actions/checkout action to v4 2023-09-04 14:47:11 +00:00
Julius Härtl 1bce780ebd Merge pull request #212 from juliushaertl/renovate/elasticsearch-7.x 2023-08-24 17:56:56 +02:00
renovate[bot] ec093790ad chore(deps): update elasticsearch docker tag to v7.17.12 2023-08-24 00:55:48 +00:00
Julius Härtl fea393d7ed chore: Bump notify_push to 0.6.3
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-07-25 21:55:03 +02:00
Julius Härtl 9ccc3f7d23 Merge pull request #207 from juliushaertl/renovate/quay.io-keycloak-keycloak-22.x 2023-07-11 22:02:31 +02:00
Julius Härtl ef7d3212f5 Merge pull request #206 from kesselb/use-php-extension-installer 2023-07-11 22:01:31 +02:00
renovate[bot] 00c8d0a054 chore(deps): update quay.io/keycloak/keycloak docker tag to v22 2023-07-11 15:34:16 +00:00
Daniel Kesselberg 01604663b3 feat: add oci extension for php
and migrate the dockerfile to use https://github.com/mlocati/docker-php-extension-installer

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-07-11 17:05:40 +02:00
Julius Härtl 1689cc8ee2 fix: Use proper preview provider index (fix #202)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-07-10 06:50:39 +02:00
Julius Härtl c8c016ee50 fix: Remove duplicate bucket key (fixes #203)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-07-10 06:50:03 +02:00
Marcel Müller ec21e9270f Add janus for talk
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2023-07-09 15:33:09 +02:00
Marcel Müller 1c8210f139 Add signaling container for talk
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2023-07-09 14:59:52 +02:00
Julius Härtl 61fc9e8826 Merge pull request #197 from SystemKeeper/update-mkcert-docs 2023-06-26 20:53:11 +02:00
Julius Härtl 5a368f953d Merge pull request #198 from SystemKeeper/add-note-about-dns-sd 2023-06-26 19:51:06 +02:00
Marcel Müller cb4d74e48e Add note about the use of 'dns-sd' on MacOS
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2023-06-26 19:46:45 +02:00
Marcel Müller cf2bbfd4cc Adjust mkcert documentation and add helper script
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2023-06-26 18:11:40 +02:00
Julius Härtl 5eb6d2cf00 Merge pull request #196 from mpivchev/patch-1 2023-06-23 11:54:37 +02:00
Milen Pivchev f538a7c7c8 Update README.md 2023-06-23 11:49:02 +02:00
Julius Härtl 940602d00a chore(docker): Move to nextcloud/aio-imaginary (fix #185)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-20 23:26:31 +02:00
Julius Härtl 8350dfb59d Merge pull request #116 from juliushaertl/renovate/ubuntu-22.x 2023-06-20 23:22:35 +02:00
Julius Härtl 5f4e6ade15 fix: Do not try to create additional postgres users (fix #161)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-20 23:15:38 +02:00
Julius Härtl 155d8b6221 fix(xdebug): Adjust environment variable name to fix dynamically changing xdebug mode (fixes #136)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-20 22:32:21 +02:00
Julius Härtl 4d17b40c7a Merge pull request #194 from SystemKeeper/documentation-adjustments 2023-06-13 17:10:51 +02:00
Marcel Müller 410e9099e1 Adjust wording of some steps in README and example.env
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2023-06-11 20:06:46 +02:00
Julius Härtl ba7f0cb19e fix: unset XDEBUG_MODE as it would lead to not pick up the config value after setting
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-06 12:54:33 +02:00
Julius Härtl 95f68cc925 Merge pull request #192 from camilasan/patch-1 2023-06-05 14:35:19 +02:00
Camila 996a1834a1 Update clamav container name in README. 2023-06-05 14:21:56 +02:00
Julius Härtl f074c417ea Merge pull request #191 from Pytal/bump-mariadb 2023-06-03 12:28:18 +02:00
Christopher Ng 4a4092d0c4 Bump MariaDB
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-06-02 22:41:25 -07:00
Julius Härtl c03d89a3b1 feat(docker): Add collabora/code mirror for ghcr.io
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-01 15:37:38 +02:00
Julius Härtl c09b1192d6 fix: Add phpmyadmin to the proxy network aliases
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-06-01 15:37:37 +02:00
Julius Härtl f177dd40b1 Merge pull request #152 from juliushaertl/renovate/quay.io-keycloak-keycloak-21.x 2023-05-30 09:35:54 +02:00
renovate[bot] d63e8b8fae chore(deps): update quay.io/keycloak/keycloak docker tag to v21 2023-05-28 06:43:07 +00:00
Julius Härtl ab206d6923 chore: Add stable27 container
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-05-19 18:29:11 +02:00
Julius Härtl 172b158844 Update README.md 2023-05-15 17:01:39 +02:00
Julius Härtl cfc188ff54 Update README.md 2023-05-14 12:16:16 +02:00
Julius Härtl 4378ded170 fix: Properly set permissions for pre-cloned server checkout
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-05-14 12:15:02 +02:00
Julius Härtl c9e3f1efdd Update bootstrap.sh 2023-05-14 12:01:05 +02:00
Julius Härtl 5c639ddec5 Merge pull request #189 from juliushaertl/enh/autoinstall-waittime 2023-05-11 09:07:48 +02:00
Julius Härtl 54975688f7 fix: Make autoinstall wait time configurable and 0 by default
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-05-11 08:38:31 +02:00
Julius Härtl d63dd0b145 Merge pull request #188 from come-nc/patch-3
Fix Keycloak link syntax
2023-05-04 11:31:14 +02:00
Côme Chilliet a862f0e51c Fix Keycloak link syntax 2023-05-04 09:22:12 +02:00
Julius Härtl d44394be34 Merge pull request #187 from juliushaertl/renovate/elasticsearch-7.x 2023-05-03 07:37:54 +02:00
renovate[bot] c21382a82a chore(deps): update elasticsearch docker tag to v7.17.10 2023-05-03 01:11:51 +00:00
Julius Härtl 08eb53dbc2 Merge pull request #186 from mmaate/patch-1 2023-04-16 11:41:19 +02:00
mmaate a9650d3216 fix value for DB_SERVICE bootstrap.sh
this fixes the error in docker-compose.yml: "ERROR: Service 'nextcloud' depends on service 'database-mysql # other values: "database-postgres"' which is undefined." while running ´docker-compose up nextcloud proxy´
2023-04-15 23:53:21 +02:00
Julius Härtl c4f866deac Merge pull request #173 from fflorent/explicit-default-database-in-bootstrap 2023-04-05 09:02:53 +02:00
Florent ee4cc0aa59 Update bootstrap.sh : oci not supported yet
Co-authored-by: Julius Härtl <jus@bitgrid.net>
2023-04-05 08:54:10 +02:00
Julius Härtl 2d51455cc3 Merge pull request #181 from gerbrent/readme/url-keycloak
correct Keycloak URL, needs testing
2023-04-05 08:34:17 +02:00
Julius Härtl 59b07d4b1e Merge branch 'master' into readme/url-keycloak 2023-04-05 08:34:09 +02:00
Julius Härtl e5fa3217cb Merge pull request #183 from juliushaertl/bugfix/noid/image-build-failure 2023-04-04 20:43:35 +02:00
Julius Härtl 42acbd98c2 fix: Remove mcrypt from 7.1 build
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-04-04 18:23:14 +02:00
Julius Härtl 37b095daff fix: Properly build gd for old php versions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-04-04 17:07:39 +02:00
Julius Härtl f5b191d9ba fix: Avoid continuing image build if one extension build fails
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-04-04 16:31:59 +02:00
Julius Härtl ec2a44de56 fix: Cleanup installing.html after setup (fix #179)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-04-03 09:44:03 +02:00
Julius Härtl fad0e5748b Merge pull request #178 from aentwist/177-add-webp-and-avif 2023-03-31 16:04:47 +02:00
Julius Härtl df3f1e51c4 Merge pull request #176 from gerbrent/readme/typos,edits 2023-03-31 14:33:43 +02:00
Brent Gervais e758d203db correct Keycloak URL, needs testing 2023-03-31 12:03:55 +02:00
Anderson Entwistle d35f147bfb build: add WebP and AVIF support
WebP is available since PHP 5.4. AVIF is available since PHP 8.1.

See https://www.php.net/manual/en/function.imagewebp.php
and https://www.php.net/manual/en/function.imageavif.php

Signed-off-by: Anderson Entwistle <46688047+aentwist@users.noreply.github.com>
2023-03-30 14:22:20 -04:00
Brent Gervais 11200b9de2 add link to 3rdparty submodule repo 2023-03-29 11:17:59 -06:00
Brent Gervais c9a4b75176 correct spelling, typos. add link, clarity edits.
Corrects multiple project name spellings, letter casing, typos, grammar, and adds helpful links to projects where appropriate.
2023-03-29 11:08:47 -06:00
Florent 7f24768f15 In bootstrap, explicit the default database 2023-03-27 13:09:38 +02:00
Florent d4998c12e7 Postgresql host port like Mysql 2023-03-27 12:58:42 +02:00
Julius Härtl c21262fc5c feat(ssl): Properly detect http/https from proxy
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-24 12:37:57 +01:00
Julius Härtl 999c1b551f Merge pull request #167 from datenangebot/master 2023-03-24 08:56:44 +01:00
Florian Steffens 7d1ccace93 enh(db): adjust readme
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
2023-03-23 11:47:23 +01:00
Florian Steffens 366f82a611 enh(db): add server configuration and remove usage of a volume
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
2023-03-23 11:44:52 +01:00
Florian 8785ae0ed7 Merge branch 'juliushaertl:master' into master 2023-03-23 11:40:18 +01:00
Julius Härtl fc758fabf7 Merge pull request #166 from christianlupus-nextcloud/fix/proxy-timeout 2023-03-21 17:22:04 +01:00
Christian Wolf e8d432051f Fix path of extracted file
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-21 16:46:01 +01:00
Florian Steffens d8c47913f5 enh(db): add proxy dependecy to pdAdmin config
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
2023-03-20 09:44:14 +01:00
Florian Steffens 3d78df390a enh(db): add pgAdmin to access postgres db
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
2023-03-20 09:42:05 +01:00
Julius Härtl 9f0cf3ad66 Merge pull request #160 from christianlupus-nextcloud/dev/additional-helper-scripts 2023-03-20 07:21:08 +01:00
Christian Wolf 34a7b00bb3 Increase timeout in nginx proxy
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-17 21:35:04 +01:00
Julius Härtl caa1161694 Merge pull request #163 from christianlupus-nextcloud/fix/proxy-dependencies 2023-03-17 12:49:49 +01:00
Christian Wolf 6b655403a1 Add proxy to all nextcloud server containers as a dependency
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-17 12:10:30 +01:00
Julius Härtl 131dc9738f Merge pull request #162 from datenangebot/master 2023-03-17 09:33:28 +01:00
Florian cd635c9732 Add postgres db
The name of the expected db was missing.
2023-03-16 19:25:28 +01:00
Christian Wolf e085c40f94 Make shell checker happy
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-16 11:29:30 +01:00
Christian Wolf ef0c147a25 Clean up the scripts a bit
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-16 11:23:31 +01:00
Christian Wolf c61c7ab837 Added DB script to access mysql storage
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-16 11:04:05 +01:00
Christian Wolf 038f3519b8 Create OCC script
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-16 10:49:09 +01:00
Julius Härtl 51751c8b6b Merge pull request #159 from christianlupus-nextcloud/fix/documentation 2023-03-15 15:29:10 +01:00
Christian Wolf 254cf304ca Fix documentation
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-15 14:24:03 +01:00
Christian Wolf 6f300e74f3 Allow persistent storage of xdebug mode
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-15 14:05:23 +01:00
Julius Härtl 0122716e54 Merge pull request #157 from fflorent/proxy-port 2023-03-14 22:52:34 +01:00
Florent 3cacf0befe Update README 2023-03-14 21:35:42 +01:00
Florent 6502a6e3b8 Add PROXY_PORT_HTTP and PROXY_PORT_HTTPS env variables
These variables can override the default port for the reverse proxy.
2023-03-14 20:43:34 +01:00
Julius Härtl 1871397b0c feat: Add stable26 container
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-13 18:03:12 +01:00
Julius Härtl be48a91b50 Merge pull request #127 from christianlupus-nextcloud/add-xdebug-logging 2023-03-13 07:36:18 +01:00
Christian Wolf 82fdcb351c Simplify replacement to use shell script
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-12 19:42:22 +01:00
Christian Wolf 54e7aae15a Allow to set permissions on xdebug settings also with paths
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-12 19:35:46 +01:00
Christian Wolf 808ef35929 Fix permissions of log file
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-12 19:35:46 +01:00
Christian Wolf e2ae8ad01b Set default log level to error 2023-03-12 19:35:46 +01:00
Christian Wolf 8f446231eb Change location of logging to common log folder plus export to docker logs
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-12 18:45:06 +01:00
Christian Wolf bcd566d805 Allow logging of xdebug debugd to setup dev environment easier
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-12 18:32:55 +01:00
Julius Härtl 0dbcaa0e20 Merge pull request #155 from christianlupus-nextcloud/fix/mailhog-access 2023-03-08 15:11:46 +01:00
Julius Härtl 56fb426903 Merge pull request #156 from christianlupus-nextcloud/fix/hosts-script 2023-03-08 15:10:54 +01:00
Christian Wolf ec1544b392 Fix script to creatte the hosts file
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-08 12:20:31 +01:00
Christian Wolf 2251203a0c This makes the mailhog web interface available via the proxy
Signed-off-by: Christian Wolf <github@christianwolf.email>
2023-03-08 11:57:37 +01:00
Julius Härtl 3be84eff8f fix: Add missing dockerfile
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-01 14:04:03 +01:00
Julius Härtl 89a30bfbda feat: Add code dev container
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-01 14:02:26 +01:00
Julius Härtl ffe72e4873 fix: make sure blackfire is properly disabled by default
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-01 14:01:57 +01:00
Julius Härtl f652195a6c Merge pull request #149 from juliushaertl/enh/all-contianers 2023-02-17 10:03:22 +01:00
Julius Härtl af430f79eb Merge pull request #150 from SwikritiT/refactor-retry 2023-02-17 10:03:11 +01:00
Swikriti Tripathi f15e915837 Refactor retry enable app
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
2023-02-17 14:34:01 +05:45
Julius Härtl f8bb5ea0df feat: build smb and php71 containers
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-16 22:38:47 +01:00
Julius Härtl ee70425cfb feat: Add script to generate /etc/hosts (fixes #128)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-16 22:36:27 +01:00
Julius Härtl 189393d3b8 Merge pull request #146 from SwikritiT/retry-enabling-app 2023-02-16 22:10:41 +01:00
Swikriti Tripathi f09f569592 add wait time 2023-02-14 10:11:02 +05:45
Julius Härtl 488435aee6 Merge pull request #147 from juliushaertl/renovate/elasticsearch-7.x 2023-02-08 09:09:54 +01:00
renovate[bot] 137e491049 chore(deps): update elasticsearch docker tag to v7.17.9 2023-02-08 00:35:14 +00:00
Swikriti Tripathi 5a299cb432 run command in loop 2023-02-07 16:44:48 +05:45
Swikriti Tripathi 3e5d023c1b Retry enabling app in it's not already enabled
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
2023-02-06 12:19:38 +05:45
Julius Härtl 84914ee9ae Merge pull request #145 from juliushaertl/renovate/docker-build-push-action-4.x 2023-01-31 08:25:30 +01:00
renovate[bot] b1fe0e53c8 chore(deps): update docker/build-push-action action to v4 2023-01-30 20:38:55 +00:00
Julius Härtl 579008e919 Merge pull request #143 from individual-it/installOldVersionOfXdebug 2023-01-25 07:54:48 +01:00
Artur Neumann ba69aa2268 correct xdebug version for PHP 7.1
Signed-off-by: Artur Neumann <artur@jankaritech.com>
2023-01-25 11:32:15 +05:45
Julius Härtl e8a91bf603 Merge pull request #144 from kylecoberly/master 2023-01-24 09:43:47 +01:00
Julius Härtl d77c283dcd build(Makefile): Update template generation for redis version
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-01-24 09:42:09 +01:00
Kyle Coberly 3810418af8 Fix elasticsearch Dockerfile location 2023-01-19 16:15:55 -07:00
Artur Neumann 7d9ea6994b install old ver of xdebug for PHP 7.2-74
Signed-off-by: Artur Neumann <artur@jankaritech.com>
2023-01-18 10:38:30 +05:45
Julius Härtl 764390d168 Merge pull request #141 from datenangebot/master
Additional error hint & phpmyadmin config
2023-01-13 16:44:09 +01:00
Florian 77e90d418c Add phpmyadmin configuration info
Add the steps to startup the phpmyadmin container
2023-01-13 16:19:11 +01:00
Florian 44b2b62789 Additional error hint
Add a hint for restarting the stable containers without loosing the configuration.
2023-01-13 16:11:08 +01:00
Julius Härtl 4437d58231 Merge pull request #137 from juliushaertl/enh/shared-apps-path 2023-01-04 10:57:07 +01:00
Julius Härtl 12d15a8c41 enh: Use separate path for shared apps between multiple stable versions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-01-04 10:48:26 +01:00
Julius Härtl 627b7e4dfe Merge pull request #133 from max-nextcloud/enh/allow-adding-apps 2023-01-02 12:46:23 +01:00
Max 80141c7ac7 docs: bootstrap.sh accepts list of additional apps 2023-01-02 09:25:29 +01:00
Max 80a19a0b1c bootstrap: loop over APPS_TO_INSTALL variable 2023-01-02 09:25:29 +01:00
Max e2c01ab275 bootstrap: more friendly output when running again
Before:
```
 Setting up folder structure and fetching repositories
    🌏 Fetching server (this might take a while to finish)
       > fatal: Zielpfad workspace/server existiert bereits und ist kein leeres Verzeichnis.
     Failed to clone Nextcloud server code
    🌏 Fetching viewer
       > fatal: Zielpfad workspace/server/apps-extra/viewer existiert bereits und ist kein leeres Verzeichnis.
     Failed to install viewer
	...
```

After:
```
 Setting up folder structure and fetching repositories
    🆗 Server is already installed.
    🆗 App viewer is already installed.
```
2023-01-01 12:15:56 +01:00
Max 8930912461 bootstrap: add apps listed on command line
`./bootstrap.sh circles text` will also clone the circles and text repositories
and add them to `NEXTCLOUD_AUTOINSTALL_APPS`
so they are available when the server is started.
2023-01-01 11:37:34 +01:00
Julius Härtl 95938d87f3 Merge pull request #132 from st3iny/enh/noid/add-gmp-extension
Add gmp extension to php
2022-12-31 20:37:46 +01:00
Richard Steinmetz 17abcb56d2 Add gmp extension to php
Enable compatibility with nextcloud/twofactor_webauthn.
Ref https://github.com/nextcloud/twofactor_webauthn/blob/c6afd2def4eed808e66e887d679b24a5e2946a6a/appinfo/info.xml#L22

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2022-12-31 18:19:35 +01:00
Julius Härtl 30998908af Merge pull request #131 from christianlupus-nextcloud/add/hmr
Closes https://github.com/juliushaertl/nextcloud-docker-dev/issues/129
2022-12-29 23:16:55 +01:00
Christian Wolf b241353f74 Activate hmr_enabler by default in the bootstrap process
Signed-off-by: Christian Wolf <github@christianwolf.email>
2022-12-29 14:36:28 +01:00
Julius Härtl 485ae2b8a4 Merge pull request #123 from juliushaertl/saml 2022-12-21 21:19:18 +01:00
Julius Härtl 602e286ad4 Add saml data as temporary docs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-21 16:15:57 +01:00
Julius Härtl 217a0bb636 Bump keycloak to 20.0
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-21 16:09:58 +01:00
Julius Härtl e96ae06317 Bump keycloak import to 17.0
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-21 16:09:58 +01:00
Julius Härtl 105dc2f613 Update keycloak example realm to cover saml configuration
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-21 16:09:57 +01:00
Julius Härtl a615f58468 Fix shellcheck
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-20 14:17:43 +01:00
Julius Härtl b156028604 Fix minio browser url building
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-20 12:49:55 +01:00
Julius Härtl 733b22111e Merge pull request #125 from juliushaertl/renovate/quay.io-keycloak-keycloak-20.x
Update quay.io/keycloak/keycloak Docker tag to v20.0.2
2022-12-14 10:23:49 +01:00
renovate[bot] 79b3d2403a Update quay.io/keycloak/keycloak Docker tag to v20.0.2 2022-12-13 17:29:50 +00:00
Julius Härtl 2417fd36b5 Bump PHP 8.2 container to final release
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-09 17:46:10 +01:00
Julius Härtl 8b49829e0d Make minio console accessible again
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-09 17:44:57 +01:00
Julius Härtl 41daeeb1ef Merge pull request #122 from juliushaertl/renovate/elasticsearch-7.x
Update elasticsearch Docker tag to v7.17.8
2022-12-09 17:41:34 +01:00
Julius Härtl d170773a05 Fix shellcheck
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-09 17:40:52 +01:00
renovate[bot] 97b80b09b8 Update elasticsearch Docker tag to v7.17.8 2022-12-08 20:03:56 +00:00
Julius Härtl 6171983070 Avoid error with empty lookupserver during setup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-06 22:42:25 +01:00
Julius Härtl 022a6c9954 Print executed occ commands during bootstrap
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-06 22:42:25 +01:00
Julius Härtl b380ed7ac3 Skip auto setup if standalone container is used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-06 22:42:25 +01:00
Julius Härtl a36da31f59 Update renovate.json 2022-12-02 21:28:22 +01:00
Julius Härtl de3e7b6503 Merge pull request #92 from juliushaertl/enh/single-container 2022-12-01 21:07:21 +01:00
Julius Härtl 44522fd7ca Add documentation about standalone container
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-01 18:58:37 +01:00
Julius Härtl b36979b56a Make the container work in standalone mode
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-01 18:58:18 +01:00
Julius Härtl 23d030d135 Merge pull request #117 from szaimen/enh/noid/fix-install 2022-11-29 14:41:24 +01:00
Simon L 07d9832298 fix initial install
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-11-28 19:33:07 +01:00
Julius Härtl eb15df4825 Update bootstrap output about unshallow
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-28 08:38:24 +01:00
Julius Härtl 8a7ad87310 Update docs about unshallowing the server reopo 2022-11-28 08:36:29 +01:00
Julius Härtl 39c79b57db Add note about viewer checkout for stable versions 2022-11-28 08:32:57 +01:00
renovate[bot] 65bb9a61d2 Update ubuntu Docker tag to v22 2022-11-27 19:18:14 +00:00
Julius Härtl 7f1c01987c Merge pull request #115 from juliushaertl/renovate/redis-7.x
Update redis Docker tag to v7
2022-11-27 17:48:13 +01:00
Julius Härtl c5e6b12b05 Merge pull request #114 from juliushaertl/renovate/quay.io-keycloak-keycloak-20.x
Update quay.io/keycloak/keycloak Docker tag to v20
2022-11-27 17:06:52 +01:00
renovate[bot] 7ef1e7b62a Update redis Docker tag to v7 2022-11-27 16:00:29 +00:00
renovate[bot] 0762b51b6d Update quay.io/keycloak/keycloak Docker tag to v20 2022-11-27 16:00:24 +00:00
Julius Härtl 3bba63f4ca Merge pull request #102 from juliushaertl/enh/php82
Add PHP 8.2 RC container
2022-11-27 14:32:26 +01:00
Julius Härtl ef51f1cd77 Merge pull request #107 from juliushaertl/renovate/elasticsearch-7.x 2022-11-27 13:13:28 +01:00
Julius Härtl 15a9daa805 Add PHP 8.2 RC container
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 13:01:33 +01:00
Julius Härtl 14ffe05314 Add improved pull makefile targets
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 13:00:49 +01:00
renovate[bot] 926aef4c06 Update elasticsearch Docker tag to v7.17.7 2022-11-27 11:56:33 +00:00
Julius Härtl ce5e421300 Merge pull request #105 from juliushaertl/dependabot/github_actions/docker/setup-buildx-action-2 2022-11-27 12:55:21 +01:00
Julius Härtl fcbe3f7e41 Merge pull request #106 from juliushaertl/renovate/configure 2022-11-27 12:55:07 +01:00
renovate[bot] d2f4130c20 Add renovate.json 2022-11-27 11:49:37 +00:00
dependabot[bot] 230c83304b Bump docker/setup-buildx-action from 1 to 2
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-27 11:45:27 +00:00
Julius Härtl 1216d05538 Dependabot for docker files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 12:45:02 +01:00
Julius Härtl f5f473175a Merge pull request #91 from camilasan/readme 2022-11-27 12:40:42 +01:00
Julius Härtl 96027e74cc Merge pull request #103 from juliushaertl/enh/sysvsem 2022-11-27 12:20:13 +01:00
Julius Härtl 2162a7360b Fix dockerfile matrix for build job
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 11:26:36 +01:00
Julius Härtl 4fbc715a56 Add sysvsem module
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 11:05:08 +01:00
Julius Härtl 1ad9ec39e3 Add primary env to more containers
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 11:02:12 +01:00
Julius Härtl c4dbfc5403 Merge pull request #96 from juliushaertl/push 2022-11-27 10:58:42 +01:00
Julius Härtl 4e6a1a9451 Fix shellcheck
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 10:56:13 +01:00
Julius Härtl eeda7556b6 Merge pull request #98 from juliushaertl/dependabot/github_actions/actions/cache-3 2022-11-27 10:39:00 +01:00
Julius Härtl 00e6cae2c7 Merge pull request #99 from juliushaertl/dependabot/github_actions/docker/build-push-action-3 2022-11-27 10:38:54 +01:00
Julius Härtl b9db61565e Merge pull request #100 from juliushaertl/dependabot/github_actions/docker/login-action-2 2022-11-27 10:38:47 +01:00
Julius Härtl be210587be Merge pull request #101 from juliushaertl/dependabot/github_actions/docker/setup-qemu-action-2 2022-11-27 10:38:41 +01:00
Julius Härtl 0c22fa4bc8 Merge pull request #97 from juliushaertl/dependabot/github_actions/actions/checkout-3 2022-11-27 10:38:21 +01:00
Julius Härtl cf423c8202 Turn off xdebug/blackfire by default
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 10:37:53 +01:00
dependabot[bot] 6b2f1edacd Bump docker/setup-qemu-action from 1 to 2
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-27 08:37:52 +00:00
dependabot[bot] 3d2a29876f Bump docker/login-action from 1 to 2
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-27 08:37:49 +00:00
dependabot[bot] 75a673c6d3 Bump docker/build-push-action from 2 to 3
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-27 08:37:46 +00:00
dependabot[bot] 2249bc44d2 Bump actions/cache from 2 to 3
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-27 08:37:43 +00:00
dependabot[bot] d867e87a90 Bump actions/checkout from 2 to 3
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-27 08:37:40 +00:00
Julius Härtl 9d03694011 Update push in docker-compose
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 09:26:30 +01:00
Julius Härtl f610cf299b Create dependabot.yml 2022-11-27 09:22:53 +01:00
Julius Härtl 4fe0a7c4ed Merge pull request #94 from smesterheide/enh/update-ca-certificates
Run /usr/sbin/update-ca-certificates regularly
2022-11-27 09:19:03 +01:00
Julius Härtl 9146fe4c33 Move more dockerfiles to dedicated dirs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 09:18:40 +01:00
Julius Härtl 23d3e81b3c Add push docker file to jobs
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 08:57:34 +01:00
Julius Härtl 74017396e4 Build push docker file
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-11-27 08:56:54 +01:00
Sandro Mesterheide 24687aee69 Run /usr/sbin/update-ca-certificates regularly 2022-11-25 14:27:14 +01:00
Camila ba215d2b7c Extend the README.
Signed-off-by: Camila <hello@camila.codes>
2022-11-07 22:43:36 +01:00
Julius Härtl dad9f33359 Merge pull request #86 from juliushaertl/feature/update-default-php
Update the default release of PHP
2022-10-13 11:10:26 +02:00
Baptiste Fotia c11df7ec3b fix(yml):Adapting php release to stable NC version
I adapted the php release to stable NC versions.

Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
2022-10-13 11:02:09 +02:00
Baptiste Fotia 24e0fe8c6b feature(yml): Update the default release of PHP
I updated the default release of PHP to be compliant with the official
documentation admin :
https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html
.

Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
2022-10-13 10:24:51 +02:00
Julius Härtl 2cec861c04 Merge pull request #82 from eneiluj/enh/noid/harmonize-docker-compose
Add stable25 and harmonize stable* container configs
2022-10-06 09:21:57 +02:00
Julien Veyssier 360460d1dd add stable25 and harmonize stable*
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-10-05 18:18:14 +02:00
Julius Härtl abfabbf9fa Merge pull request #83 from arawa/hotfix/redefine-env
refactor(Docker, Bash): Generic env vars
2022-10-05 09:28:29 +02:00
Baptiste Fotia f0615d4ada refactor(Docker, Bash): Generic env vars
I deleted all values related to Julius' home to make it as generic as
possible.
In addition, I changed the value of the COMPOSE_PROJECT_NAME env var to
target the master branch. Otherwise, we cannot join the development instance
with "http://nextcloud.local".

Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
2022-10-04 15:17:03 +02:00
Julius Härtl ca6cd7ab47 Merge pull request #79 from sylvainmetayer/feat_35_add_phpunit 2022-10-03 11:52:28 +02:00
Sylvain 0a9394970a feat(35): add phpunit 2022-10-02 19:46:01 +02:00
126 changed files with 5699 additions and 3929 deletions
+11
View File
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "docker"
directory: "/docker/"
schedule:
interval: "daily"
+72 -15
View File
@@ -7,78 +7,135 @@ on:
push:
branches:
- master
release:
types: [published]
jobs:
push_to_registry:
name: Build image
runs-on: ubuntu-latest
if: github.repository == 'juliushaertl/nextcloud-docker-dev'
strategy:
fail-fast: false
matrix:
container:
- php83
- php82
- php81
- php80
- php74
- php73
- php72
- php71
- push
- saml
- nginx
- elasticsearch
- mailhog
- ldap
- lookupserver
- smb
- codedev
- code
- talk-janus
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ matrix.container }}-buildx-${{ github.sha }}
restore-keys: |
${{ matrix.container }}-buildx-
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Set dockerfile path
id: dockerfile
run: |
NAME="${{ matrix.container }}"
DOCKERFILE=$([[ -f "docker/$NAME/Dockerfile" ]] && echo "docker/$NAME/Dockerfile" || echo "docker/Dockerfile.$NAME")
echo "DOCKERFILE=$DOCKERFILE" >> $GITHUB_OUTPUT
- name: Build container image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
push: false
context: docker/
platforms: linux/amd64,linux/arm64
file: docker/Dockerfile.${{ matrix.container }}
file: ${{ steps.dockerfile.outputs.DOCKERFILE }}
tags: |
ghcr.io/juliushaertl/nextcloud-dev-${{ matrix.container }}
ghcr.io/juliushaertl/nextcloud-dev-${{ matrix.container }}:${{ github.sha }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Start containers with docker compose
run: |
./bootstrap.sh
PHP_VERSION=$(echo ${{ matrix.container }} | sed -e 's/^php//')
echo "PHP_VERSION=${PHP_VERSION}" >> .env
# exit if php version is not numeric or below 80
if ! [[ $PHP_VERSION =~ ^[0-9]+$ ]] || [[ $PHP_VERSION -lt 80 ]]; then
exit 0
fi
docker-compose up -d nextcloud
# wait for nextcloud to be up
# wait up to 5 minutes
for i in {1..300}; do
if curl -s http://nextcloud.local/index.php/login | grep -q 'Login'; then
break
fi
sleep 1
done
curl http://nextcloud.local/status.php
- uses: actions/setup-node@v3
if: matrix.container == 'php80' || matrix.container == 'php81' || matrix.container == 'php82' || matrix.container == 'php83'
with:
node-version: 18
- name: Install dependencies
if: matrix.container == 'php80' || matrix.container == 'php81' || matrix.container == 'php82' || matrix.container == 'php83'
working-directory: tests
run: npm ci
- name: Install Playwright Browsers
if: matrix.container == 'php80' || matrix.container == 'php81' || matrix.container == 'php82' || matrix.container == 'php83'
working-directory: tests
run: npx playwright install --with-deps
- name: Run Playwright tests
if: matrix.container == 'php80' || matrix.container == 'php81' || matrix.container == 'php82' || matrix.container == 'php83'
working-directory: tests
run: npx playwright test
- uses: actions/upload-artifact@v3
if: matrix.container == 'php80' || matrix.container == 'php81' || matrix.container == 'php82' || matrix.container == 'php83'
with:
name: playwright-report
path: tests/playwright-report/
retention-days: 30
- name: Push container image
uses: docker/build-push-action@v2
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v5
if: github.ref == 'refs/heads/master' || github.event_name == 'release'
with:
push: true
context: docker/
platforms: linux/amd64,linux/arm64
file: docker/Dockerfile.${{ matrix.container }}
file: ${{ steps.dockerfile.outputs.DOCKERFILE }}
tags: |
ghcr.io/juliushaertl/nextcloud-dev-${{ matrix.container }}
ghcr.io/juliushaertl/nextcloud-dev-${{ matrix.container }}:${{ github.event_name == 'release' && 'latest' || 'nightly' }}
ghcr.io/juliushaertl/nextcloud-dev-${{ matrix.container }}:${{ github.ref_name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
+51
View File
@@ -0,0 +1,51 @@
name: Publish MkDocs to GitHub Pages
on:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material
- name: Build MkDocs
run: mkdocs build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: './site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
+1 -1
View File
@@ -11,6 +11,6 @@ jobs:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
+14 -8
View File
@@ -1,9 +1,15 @@
data/ssl/
data/shared/
workspace/
.env
*.env
/.vscode
/data/ssl/
/data/shared/
/workspace/
/.env
/*.env
!example.env
.*
data/skeleton/
wip/
/data/skeleton/
/wip/
/site
node_modules/
/tests/test-results/
/tests/playwright-report/
/tests/blob-report/
/tests/playwright/.cache/
+45 -16
View File
@@ -1,25 +1,44 @@
SHELL := /bin/bash
.PHONY: images
.PHONY: images docker-build pull-all docs docs-watch
.ONESHELL:
images:
images: docker/*/Dockerfile docker/Dockerfile.*
.ONESHELL:
pull-all:
for file in $$(find docker/ -maxdepth 1 -type f -iname 'Dockerfile.*'); do \
NAME=$$(echo $$file | sed 's/^.*\.//'); echo "=> Building image $$NAME"; \
(cd docker && docker build -t ghcr.io/juliushaertl/nextcloud-dev-$$NAME:latest -f Dockerfile.$$NAME .)
NAME=$$(echo $$file | sed 's/^.*\.//'); \
echo "=> Pulling image $$NAME"; docker pull "ghcr.io/juliushaertl/nextcloud-dev-$${NAME}"; \
done
for file in $$(find docker -maxdepth 2 -type f -iname 'Dockerfile'); do \
NAME=$$(basename $$(dirname $$file)); \
echo "=> Pulling image $$NAME"; docker pull "ghcr.io/juliushaertl/nextcloud-dev-$${NAME}"; \
done
.PHONY: pull
.ONESHELL:
pull:
for file in $$(find docker/ -maxdepth 1 -type f -iname 'Dockerfile.*'); do \
NAME=$$(echo $$file | sed 's/^.*\.//'); echo "=> Pulling image $$NAME"; docker pull "ghcr.io/juliushaertl/nextcloud-dev-$${NAME}"; \
done
pull-installed:
docker image ls | grep juliushaertl/nextcloud-dev | cut -f 1 -d " "
docker image ls | grep juliushaertl/nextcloud-dev | cut -f 1 -d " " | xargs -L 1 docker pull
# Empty target to always build
docker-build:
docker/%/Dockerfile: docker-build
NAME=$$(basename $$(dirname $@)); \
echo "=> Building dockerfile" $@ as ghcr.io/juliushaertl/nextcloud-dev-$$NAME:latest; \
(cd docker && docker build -t ghcr.io/juliushaertl/nextcloud-dev-$$NAME:latest -f $$NAME/Dockerfile .)
docker/Dockerfile.%: docker-build
NAME=$$(echo $$(basename $@) | sed 's/^.*\.//'); \
echo "=> Building dockerfile" $@ as ghcr.io/juliushaertl/nextcloud-dev-$$NAME:latest; \
(cd docker && docker build -t ghcr.io/juliushaertl/nextcloud-dev-$$NAME:latest -f Dockerfile.$$NAME .)
check: dockerfilelint shellcheck
.ONESHELL:
dockerfilelint:
for file in $$(find docker/ -type f -iname 'Dockerfile.*' -maxdepth 1); do dockerfilelint $$file; done;
for file in $$(find docker -type f -iname 'Dockerfile' -maxdepth 2); do dockerfilelint $$file; done;
.ONESHELL:
shellcheck:
@@ -28,9 +47,19 @@ shellcheck:
.ONESHELL:
template-apply:
cat docker/Dockerfile.php.template | sed 's/php:8.1/php:7.1/' > docker/Dockerfile.php71
cat docker/Dockerfile.php.template | sed 's/php:8.1/php:7.2/' > docker/Dockerfile.php72
cat docker/Dockerfile.php.template | sed 's/php:8.1/php:7.3/' > docker/Dockerfile.php73
cat docker/Dockerfile.php.template | sed 's/php:8.1/php:7.4/' > docker/Dockerfile.php74
cat docker/Dockerfile.php.template | sed 's/php:8.1/php:8.0/' > docker/Dockerfile.php80
cat docker/Dockerfile.php.template | sed 's/php:8.1/php:8.1/' > docker/Dockerfile.php81
cat docker/Dockerfile.php.template | sed 's/php:8.2/php:7.1/' > docker/Dockerfile.php71
cat docker/Dockerfile.php.template | sed 's/php:8.2/php:7.2/' > docker/Dockerfile.php72
cat docker/Dockerfile.php.template | sed 's/php:8.2/php:7.3/' > docker/Dockerfile.php73
cat docker/Dockerfile.php.template | sed 's/php:8.2/php:7.4/' > docker/Dockerfile.php74
cat docker/Dockerfile.php.template | sed 's/php:8.2/php:8.0/' > docker/Dockerfile.php80
cat docker/Dockerfile.php.template | sed 's/php:8.2/php:8.1/' > docker/Dockerfile.php81
cat docker/Dockerfile.php.template | sed 's/php:8.2/php:8.2/' > docker/php82/Dockerfile
cat docker/Dockerfile.php.template | sed 's/php:8.2/php:8.3/' > docker/php83/Dockerfile
docs:
pip3 install mkdocs
mkdocs
docs-watch:
pip3 install mkdocs
mkdocs serve
+66 -139
View File
@@ -1,172 +1,99 @@
# nextcloud-dev-docker-compose
# Nextcloud development environment on Docker Compose
Hi beginner developer ! 👋
Nextcloud development environment using docker-compose providing a large variety of services for Nextcloud server and app development and testing.
This project allows you to start developing a Nextcloud app or contribute to Nextcloud server.
**DO NOT USE THIS IN PRODUCTION** Various settings in this setup are considered insecure and default passwords and secrets are used all over the place
This project is very **modular** where you can add [features](#different-feature-you-can-use).
So, you can use this project for your development environment only.
- ☁ Nextcloud containers for running multiple versions
- 🐘 Multiple PHP versions
- 🔒 Nginx proxy with optional SSL termination
- 🛢️ MySQL/PostgreSQL/MariaDB/SQLite/MaxScale, Redis cache
- 💾 Local or S3 primary storage
- 👥 LDAP with example user data, Keycloak
- ✉ Mailhog for testing mail sending
- 🚀 Blackfire, Xdebug for profiling and debugging
- 📄 Lots of integrating service containers: Collabora Online, Onlyoffice, Elasticsearch, ...
**DO NOT USE THIS IN PRODUCTION** Various settings in this setup are considered insecure and default passwords and secrets are used all over the place.
## Tutorial
If you don't know how to install Docker, please, read this tutorial by Daphne Muller: https://cloud.nextcloud.com/s/iyNGp8ryWxc7Efa
Be careful : Read the "README.md" of the tutorial written by Daphne Muller first.
You can find a step by step tutorial on how to use this setup in the [Nextcloud Developer Portal](https://nextcloud.com/developer/). It will guide you through the setup and show you how to use it for app development: https://cloud.nextcloud.com/s/iyNGp8ryWxc7Efa?path=%2F1%20Setting%20up%20a%20development%20environment
## Getting started 🎮
In detail explanation of the setup and its features and configuration options can be found in the [nextcloud-docker-dev documentation](https://juliushaertl.github.io/nextcloud-docker-dev/).
First, get the setup running:
## Quickstart
### Persistent development setup
> [!TIP]
> This is the recommended way to run the setup for development. You will have a local clone of all required source code.
To start the setup run the following commands to clone the repository and bootstrap the setup. This will prepare your setp and clone the Nextcloud server repository and required apps into the `workspace` folder.
```bash
git clone https://github.com/juliushaertl/nextcloud-docker-dev
cd nextcloud-docker-dev
./bootstrap.sh
sudo sh -c "echo '127.0.0.1 nextcloud.local' >> /etc/hosts"
docker compose up nextcloud proxy
```
Ok, let's go to understand these commands line !
This may take some time depending on your internet connection speed.
First, you download the project with the git command, then you move to the `nextcloud-docker-dev` folder.
Once done you can start the Nextcloud container using:
```bash
docker-compose up nextcloud
```
The `bootstrap.sh` script check if all requirements are present and prepares your workspace.
You have the `./workspace` folder where there is the `server` folder, the Nextcloud's core and [other Nextcloud versions](docs/running-stable-versions.md) if you want (the stable21, stable22, stable23, and so on).
You can also start it in the background using `docker-compose up -d nextcloud`.
So, you if you want to contribute to the Nextcloud's core, you can work in this folder directly !
You can then access your Nextcloud instance at [http://nextcloud.local](http://nextcloud.local). The default username is `admin` and the password is `admin`. [Other users can be found in the documentation](https://juliushaertl.github.io/nextcloud-docker-dev/basics/overview/#default-users).
Then, you add `nextcloud.local` to your hosts file.
> [!WARN]
> Note that for performance reasons the server repository might have been cloned with `--depth=1` by default. To get the full history it is highly recommended to run:
>
> ```bash
> cd workspace/server
> git fetch --unshallow
> git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
> git fetch origin
> ```
Finally, the `docker compose up nextcloud proxy` command line. This command line runs the nextcloud, proxy, redis and mailhog containers.
Once here, you can read the [First connection](#first-connection) section after seeing this result in your terminal :
### Standalone containers
> [!TIP]
> This is a very simple way but doesn't cover all features. If you are looking for a fully featured setup you may skip to the next section
There is a standalone version of the Nextcloud containers available that can be used to run Nextcloud without the other services. This is useful if you are just wanting to get started with app development against a specific server version, or to just have a quick way to develop, test or debug.
These containers support automatic fetching of the server source code and use SQLite as the database. The server source code is fetched from the official Nextcloud server repository and the version can be specified using the `NEXTCLOUD_VERSION` environment variable. The default version is `master`.
Running the containers does not need this repository to be cloned.
Example for running a Nextcloud server from the master branch of server:
```bash
nextcloud-nextcloud-1 | The user "alice" was created successfully
nextcloud-nextcloud-1 | The user "user6" was created successfully
nextcloud-nextcloud-1 | The user "user1" was created successfully
nextcloud-nextcloud-1 | The user "nextcloud" was created successfully
nextcloud-nextcloud-1 | The user "user3" was created successfully
nextcloud-nextcloud-1 | The user "user5" was created successfully
nextcloud-nextcloud-1 | The user "jane" was created successfully
nextcloud-nextcloud-1 | The user "john" was created successfully
nextcloud-nextcloud-1 | The user "bob" was created successfully
nextcloud-nextcloud-1 | The user "user4" was created successfully
nextcloud-nextcloud-1 | The user "user2" was created successfully
docker run --rm -p 8080:80 ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
This result means that all users are created and you can try to log in with the admin account or [other users](#which-user-accounts-can-i-use).
If you want to stop the services, you should use `Ctrl+C`. But, the containers are always running or presents.
Look at the status of your containers with `docker compose ps` :
```bahs
$ docker compose ps
NAME COMMAND SERVICE STATUS PORTS
nextcloud-database-mysql-1 "docker-entrypoint.s…" database-mysql running 0.0.0.0:8212->3306/tcp, :::8212->3306/tcp
nextcloud-mail-1 "MailHog" mail running 1025/tcp, 8025/tcp
nextcloud-nextcloud-1 "/usr/local/bin/boot…" nextcloud exited (0)
nextcloud-proxy-1 "/app/docker-entrypo…" proxy exited (2)
nextcloud-redis-1 "docker-entrypoint.s…" redis running 6379/tcp
```
To down your containers, use the `docker compose down -v` command :
For app development you can mount your app directly into the container:
```bash
foo@bar:~/Documents/codes/nextcloud-docker-dev$ docker compose down -v
[+] Running 16/5
⠿ Container nextcloud-nextcloud-1 Removed 0.0s
⠿ Container nextcloud-proxy-1 Removed 0.0s
⠿ Container nextcloud-mail-1 Removed 0.6s
#...
foo@bar:~/Documents/codes/nextcloud-docker-dev$
```
Once you understand the mechanisms, you could run your containers in the background with the `-d` flag.
```bash
foo@bar:~/Documents/codes/nextcloud-docker-dev$ docker compose up -d proxy nextcloud
[+] Running 12/1
⠿ Network nextcloud_default Created 0.2s
⠿ Volume "nextcloud_postgres" Created 0.0s
⠿ Volume "nextcloud_mysql" Created 0.0s
⠿ Volume "nextcloud_smb" Created 0.0s
⠿ Volume "nextcloud_clam" Created 0.0s
⠿ Volume "nextcloud_document_data" Created 0.0s
#...
foo@bar:~/Documents/codes/nextcloud-docker-dev$
docker run --rm -p 8080:80 -v ~/path/to/appid:/var/www/html/apps-extra/appid ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
The difference with the `-d` flag is you can use your currently prompt after run the `docker compose` command.
The `SERVER_BRANCH` environment variable can be used to run different versions of Nextcloud by specificing either a server branch or git tag.
## First connection
```bash
docker run --rm -p 8080:80 -e SERVER_BRANCH=v24.0.1 ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
After running the `docker compose up nextcloud proxy` command, you have to wait a few minutes before trying to connect to your development instance.
You can also mount your local server source code into the container to run a local version of Nextcloud:
In fact, you will see that the `nextcloud` and `proxy` containers initialize your Nextcloud, create user accounts, and so on. Step by step.
```bash
docker run --rm -p 8080:80 -e SERVER_BRANCH=v24.0.1 -v /tmp/server:/var/www/html ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
## More features
Then, once these steps are completed, you can connect to your development instance. You must enter `http://nextcloud.local` in your address bar!
You can find documentation for more advanced features in [nextcloud-docker-dev documentation](https://juliushaertl.github.io/nextcloud-docker-dev/) for example:
In fact, with the `proxy` container you don't need to specify the port number and you can't use `http://localhost` or `http://127.0.0.1`. Just, you have to use this address : `http://nextcloud.local`.
### Which user accounts can I use ?
Here is a list of user accounts you can use :
| uid | password |
|:---:|:---:|
| admin | admin |
| user1 | user1 |
| user2 | user2 |
| user3 | user3 |
| user4 | user4 |
| user5 | user5 |
| user6 | user6 |
| nextcloud | nextcloud |
| alice | alice |
| bob | bob |
| jane | jane |
| john | john |
## Where can I add my app for development ?
Once you have ran the Nextcloud's server with `docker compose`. You can clone your app in this folder : `./workspace/server/apps-extra/`.
Of course, you should adapt to the nextcloud release you are using (server, stable23, stable24, and so on.).
If you have not yet generated an app, you can do so from this web page : [https://apps.nextcloud.com/developer/apps/generate](https://apps.nextcloud.com/developer/apps/generate).
## Going further
If you want to go further, you can add new features or customize your development environment by following this documentation : [Configure my environment](docs/manual-setup.md#copy-environment-variables).
If you use **XDEBUG** to debug your PHP code. Please, read the [Set Up Xdebug](docs/setup-xdebug.md) documentation.
If you want to set up the Nextcloud's core, please, read the [Manual setup](docs/manual-setup.md) documentation.
If you aren't comfortable with Docker or other tools from the various containers (ldap, mysql, and so on.). You can read the [Useful commands](docs/useful-commands.md) file with some tips.
If you encounter any problems, please, look at this documentation : [Troubleshooting](docs/troubleshooting.md).
### Different feature you can use
These are features where you can use :
- ☁ Nextcloud
- 🔒 [Nginx proxy with SSL termination](docs/containers/ssl.md)
- 💾 [MySQL](docs/containers/mysql.md)
- 💡 Redis
- 👥 [LDAP with example user data](docs/containers/ldap.md)
- ✉ [Mailhog](docs/containers/mail.md)
- 🚀 [Blackfire](docs/containers/blackfire.md)
- 📄 [Collabora](docs/containers/collabora.md)
- 📄 [Only Office](docs/containers/onlyoffice.md)
- 👥 [SAML](docs/containers/saml.md)
- 🔍 [Full Text Search](docs/containers/fulltextsearch.md)
- 🪣 [Object Storage](docs/containers/objectstorage.md)
- 💉 [Antivirus](docs/containers/antivirus.md)
- 🔑 [Keycloak](docs/containers/keycloak.md)
- [Global Scale](docs/containers/globalscale.md)
- [Imaginary](docs/containers/imaginary.md)
- Running stable Nextcloud versions in parallel
- Using different database backends
- Using HTTPS
+190 -32
View File
@@ -4,6 +4,122 @@ set -o errexit
set -o nounset
set -o pipefail
APPS_TO_INSTALL=(viewer recommendations files_pdfviewer profiler hmr_enabler circles)
NEXTCLOUD_AUTOINSTALL_APPS=(viewer profiler hmr_enabler)
SERVER_CLONE=squashed
APPS_CLONE_FILTER=
print_help() {
cat << EOF
boottrap.sh [--full-clone|--clone-no-blobs] [--clone-all-apps-filtered] [--] APPS
This command will initialize the debug environment for app developers.
The following options can be provided:
--full-clone Clone the server repository with the complete history included
--clone-no-blobs Clone the server repository with the history but omitting the
file contents. A network connection might be required if checking
out commits is done.
--full-clone and --clone-no-blobs is mutually exclusive.
--clone-all-apps-filtered
Do not only reduce the history of the server repository but also
the cloned apps.
APPS The apps to add to the development setup on top of the default apps
The default apps to be installed: ${APPS_TO_INSTALL[@]}
EOF
}
while [ $# -gt 0 ]
do
case "$1" in
--full-clone)
SERVER_CLONE=full
;;
--clone-no-blobs)
SERVER_CLONE=filter-blobs
;;
--clone-all-apps-filtered)
APPS_CLONE_FILTER=y
;;
--help|-h)
print_help
exit 0
;;
--)
shift
break
;;
*)
APPS_TO_INSTALL+=("$1")
NEXTCLOUD_AUTOINSTALL_APPS+=("$1")
;;
esac
shift
done
# You can specify additional apps to install on the command line.
APPS_TO_INSTALL+=( "$@" )
NEXTCLOUD_AUTOINSTALL_APPS+=( "$@" )
# Already executed
if [ -f ".env" ]; then
echo "⏩ .env file found, so assuming you already ran this script."
echo " Validating the setup"
# shellcheck disable=SC1091
source .env
set +o errexit
echo "Server master repository path: ${REPO_PATH_SERVER}"
REPO_VERSION=$(grep "OC_VersionString" "${REPO_PATH_SERVER}/version.php" | cut -d "'" -f 2)
if [ -d "$REPO_PATH_SERVER" ] && [ -n "$REPO_VERSION" ]; then
echo "$REPO_VERSION"
elif [ -z "$REPO_VERSION" ]; then
echo "❌ Repository version.php cannot be detected"
else
echo "❌ Repository path does not exist"
fi
for i in stable26 stable27 stable28
do
echo "Stable $i repository path: ${STABLE_ROOT_PATH}/${i}"
STABLE_VERSION=$(grep "OC_VersionString" "${STABLE_ROOT_PATH}/${i}/version.php" | cut -d "'" -f 2)
if [ -d "${STABLE_ROOT_PATH}/${i}" ] && [ -n "$STABLE_VERSION" ]; then
echo "$STABLE_VERSION"
elif [ -z "$REPO_VERSION" ]; then
echo "$i version.php cannot be detected"
else
echo "$i repository path does not exist"
fi
done
exit 0
fi
case $SERVER_CLONE in
squashed)
CLONE_PARAMS=(--depth 1)
;;
clone-no-blobs)
CLONE_PARAMS=(--filter blob:none)
;;
full)
CLONE_PARAMS=()
;;
*)
echo "Unknown cloning parameter $SERVER_CLONE was found. Please report this."
exit 1
esac
if [ -n "$APPS_CLONE_FILTER" ]
then
APPS_CLONE_PARAMS=("${CLONE_PARAMS[@]}")
else
APPS_CLONE_PARAMS=()
fi
indent() {
sed 's/^/ /'
}
@@ -16,10 +132,30 @@ indent_cli() {
fi
}
function install_server() {
if [ -d workspace/server/.git ]; then
echo "🆗 Server is already installed." | indent
return
fi
mkdir -p workspace/
(
(
echo "🌏 Fetching server (this might take a while to finish)" &&
git clone "${CLONE_PARAMS[@]}" https://github.com/nextcloud/server.git --depth 1 workspace/server --progress 2>&1 &&
cd workspace/server && git submodule update --init --progress 2>&1
) || echo "❌ Failed to clone Nextcloud server code"
) | indent
}
function install_app() {
TARGET=workspace/server/apps-extra/"$1"
if [ -d "$TARGET"/.git ]; then
echo "🆗 App $1 is already installed." | indent
return
fi
(
echo "🌏 Fetching $1"
(git clone https://github.com/nextcloud/"$1".git workspace/server/apps-extra/"$1" 2>&1 | indent_cli &&
(git clone "${APPS_CLONE_PARAMS[@]}" https://github.com/nextcloud/"$1".git "$TARGET" 2>&1 | indent_cli &&
echo "$1 installed") ||
echo "❌ Failed to install $1"
) | indent
@@ -40,54 +176,37 @@ echo
echo "⏩ Performing system checks"
is_installed docker
is_installed docker-compose
is_installed git
(
(
(docker ps 2>&1 >/dev/null && echo "✅ Docker is properly executable") ||
(echo "❌ Cannot run docker ps, you might need to check that your user is able to use docker properly" && exit 1)
) | indent
echo
echo "⏩ Setting up folder structure and fetching repositories"
mkdir -p workspace/
(
(
echo "🌏 Fetching server (this might take a while to finish)" &&
git clone https://github.com/nextcloud/server.git --depth 1 workspace/server 2>&1 | indent_cli &&
cd workspace/server && git submodule update --init 2>&1 | indent_cli
) || echo "❌ Failed to clone Nextcloud server code"
) | indent
#(
# (
# cd workspace/server && \
# git worktree add ../stable19 stable19 2>&1 | indent_cli
# ) || echo "❌ Failed to setup worktree for stable19"
#) | indent
mkdir -p workspace/server/apps-extra
install_app viewer
install_app recommendations
install_app files_pdfviewer
install_app profiler
echo
echo
echo "⏩ Setup your environment in an .env file"
if [ ! -f ".env" ]; then
cat <<EOT >.env
COMPOSE_PROJECT_NAME=nextcloud
COMPOSE_PROJECT_NAME=master
PROTOCOL=http
DOMAIN_SUFFIX=.local
REPO_PATH_SERVER=$PWD/workspace/server
ADDITIONAL_APPS_PATH=$PWD/workspace/server/apps-extra
STABLE_ROOT_PATH=$PWD/workspace
NEXTCLOUD_AUTOINSTALL_APPS="viewer profiler"
NEXTCLOUD_AUTOINSTALL_APPS="${NEXTCLOUD_AUTOINSTALL_APPS[@]}"
DOCKER_SUBNET=192.168.21.0/24
PORTBASE=821
PHP_XDEBUG_MODE=develop
# SQL variant to use, possible values: sqlite, mysql, pgsql
SQL=mysql
# other values: "database-postgres"
EOT
fi
./scripts/update-hosts
if [[ $(uname -m) == 'arm64' ]]; then
echo "Setting custom containers for arm platform"
@@ -95,6 +214,15 @@ if [[ $(uname -m) == 'arm64' ]]; then
echo "CONTAINER_KEYCLOAK=mihaibob/keycloak:15.0.1" >> .env
fi
echo
echo "⏩ Setting up folder structure and fetching repositories"
install_server
mkdir -p workspace/server/apps-extra
for app in "${APPS_TO_INSTALL[@]}"
do
install_app "$app"
done
cat <<EOF
@@ -104,27 +232,57 @@ cat <<EOF
🚀 Start the Nextcloud server by running
$ docker compose up -d nextcloud
$ docker-compose up -d nextcloud
💤 Stop it with
$ docker compose stop nextcloud
$ docker-compose stop nextcloud
🗑 Fresh install and wipe all data
$ docker compose down -v
$ docker-compose down -v
EOF
case $SERVER_CLONE in
squashed)
cat <<EOF
Note that for performance reasons the server repository has been cloned with
--depth=1. To get the full history it is highly recommended to run:
$ cd workspace/server
$ git fetch --unshallow
$ git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
$ git fetch origin
This may take some time depending on your internet connection speed.
You might as well use the script in scripts/download-full-history.sh.
EOF
;;
clone-no-blobs)
cat <<EOF
Note that for performance reasons the server repository has been cloned with
--filter=blob:none. You have a complete history in the server repository.
If you checkout older commits, git will eventually download missing blobs on
the fly if they are not present locally.
You should be prepared to have a live internet connection when browsing the
history of the server repository.
You might as well use the script in scripts/download-full-history.sh.
EOF
;;
full)
;;
esac
cat <<EOF
For more details about the individual setup options see
the README.md file or checkout the repo at
+2 -67
View File
@@ -1,69 +1,4 @@
<?php
// FIXME: Move everything except the last part to the containers
// set the hostname to the VIRTUAL_HOST set for the docker container, otherwise fallback to the docker hostname
$hostname = gethostname();
$primary = isset($_ENV['PRIMARY']) ? $_ENV['PRIMARY'] : '';
$virtualHost = isset($_ENV['VIRTUAL_HOST']) ? $_ENV['VIRTUAL_HOST'] : '';
$virtualHost = explode(".", $virtualHost);
if (count($virtualHost) > 0) {
$hostname = array_shift($virtualHost);
}
$CONFIG = [];
if ($primary === 'minio') {
$CONFIG += [
'objectstore' =>
array (
'class' => 'OC\\Files\\ObjectStore\\S3',
'arguments' =>
array (
'bucket' => 'nc-' . $hostname,
'key' => 'nextcloud',
'secret' => 'nextcloud',
'hostname' => 'minio',
'port' => '9000',
'use_ssl' => false,
'use_path_style' => true,
'autocreate' => true,
'verify_bucket_exists' => true,
),
)
];
}
if ($primary === 'minio-multibucket') {
$CONFIG += [
'objectstore_multibucket' => array(
'class' => 'OC\\Files\\ObjectStore\\S3',
'arguments' => array(
// optional, defaults to 64
'num_buckets' => 64,
// n integer in the range from 0 to (num_buckets-1) will be appended
'bucket' => 'nextcloud_',
'bucket' => 'nc-' . $hostname,
'key' => 'nextcloud',
'secret' => 'nextcloud',
'hostname' => 'minio',
'port' => '9000',
'use_ssl' => false,
'use_path_style' => true,
),
),
];
}
// Useful config values during development
$CONFIG += array(
'debug' => true,
'loglevel' => 2,
// 'htaccess.RewriteBase' => '/',
'log_query' => false,
'query_log_file' => '/var/www/html/data/query.log',
'diagnostics.logging' => false,
'diagnostics.logging.threshold' => 0,
'log.condition' => [
'apps' => ['diagnostics', 'admin_audit'],
],
// This file is deprecated, please put your custom config in data/shared/config.php from now on
$CONFIG = array(
);
+1
View File
@@ -0,0 +1 @@
nextcloud.local:5432:database-postgres:postgres:postgres
+14
View File
@@ -0,0 +1,14 @@
{
"Servers": {
"1": {
"Name": "nextcloud.local",
"Group": "Server Group 1",
"Port": 5432,
"Username": "postgres",
"Host": "database-postgres",
"SSLMode": "prefer",
"MaintenanceDB": "postgres",
"PassFile": "/pgadmin4/config/pgpassfile"
}
}
}
+40
View File
@@ -0,0 +1,40 @@
# Keycloak SAML test setup
Currently the Keycloak realm only supports the main instance (nextcloud.local). For other instances this would need a separate realm and adjusting the imported realm in `docker/configs/keycloak`.
Setup can be done automatically through:
```bash
occ saml:config:create
occ saml:config:set \
--general-idp0_display_name "Keycloak SAML" \
--general-uid_mapping "username" \
--idp-entityId "http://keycloak.local/realms/Example" \
--idp-singleLogoutService.url "http://keycloak.local/realms/Example/protocol/saml" \
--idp-singleSignOnService.url "http://keycloak.local/realms/Example/protocol/saml" \
--idp-x509cert="$(cat keycloak.crt)" \
--security-authnRequestsSigned 1 \
--security-logoutRequestSigned 1 \
--security-logoutResponseSigned 1 \
--security-wantAssertionsEncrypted 0 \
--security-wantAssertionsSigned 1 \
--security-wantMessagesSigned 1 \
--security-nameIdEncrypted 0 --security-wantNameId 0 \
--security-wantNameIdEncrypted 0 \
--sp-x509cert="$(cat public.cert)" \
--sp-privateKey="$(cat private.key)" \
"1"
```
## References
- Setup keycloak for SAML usage: https://janikvonrotz.ch/2020/04/21/configure-saml-authentication-for-nextcloud-with-keycloack/
## Generate keys for Nextcloud
openssl req -nodes -new -x509 -keyout private.key -out public.crt
## update keycloak from example realm
nc-dev exec keycloak /opt/keycloak/bin/kc.sh export --realm Example --users skip --dir /opt/keycloak/data/import
+3
View File
@@ -0,0 +1,3 @@
-----BEGIN CERTIFICATE-----
MIICnTCCAYUCBgGFAJ9a7jANBgkqhkiG9w0BAQsFADASMRAwDgYDVQQDDAdFeGFtcGxlMB4XDTIyMTIxMTA5NTcwMVoXDTMyMTIxMTA5NTg0MVowEjEQMA4GA1UEAwwHRXhhbXBsZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJv17u7hBOhwsRmlylApsmRplV1qPrliFmiOenUZSYwdkAtIu9Cu00BBx6FqmUnaTrMzprrjw1Kv8ADifmeT4m4ICul+nClici29o0eVh9a3dbYUZoyruXEEPd3mWVCXebkTfqA7AI8hVGHXk9R23PakQdrGJHoe1QSH3Vk41NyQbYZ5+U4gvnQqmaMgrYFtubQsS4ZdqzrkG5Ry0OigpWjOGT6dnSB0/AttN7pIfnaBGzmgIcQzBrW3c/9qhNuUBAhP3AKwYt/HptOfFkh7atOqrksIelHyuLTqsuXSJ/vAEAuEib1ns8ggYWTTRI9ROvdoJ5kvVBzflSB5Cr10LrsCAwEAATANBgkqhkiG9w0BAQsFAAOCAQEAmi2oHhClIZIl/dwLxwVFaLZ7ZcHMLcQjytxrhQhl9i/xIByQXH5DXHtsmg1HcX8BET3Hrm7McxIspBOzHBxZPGLJlZwZ5aVzI6ZwMvy49rR5tbQlRppzM3VkT10P1ccIT6Cx9PtgL9BcgiPkRyzmhq3z10Ayd2PnY0G8Z0Lc7Qc6sXz9+DCFM6GkkvECPLlEdlagtYdQAH2om2qPaj1GjYY+QgvAuRmO04Biu2E/zhMvEG0KH+OgSHf6dTrcUhk0+nl2QRs7kueakRvn+Z6VXkwkcBokNq4+Ka6z9YmimrRv/CiWoLKIcYknHaNaP/PZI6joDcg3IgxWLOLWNHxTGw==
-----END CERTIFICATE-----
+28
View File
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDlz0NWHyNGjVCR
FXahaaxhrVTAmeViELJO3pUtiqpYwhxV+nqqRUfBa0KGYHA1bIuM41/OWwHQjwFt
opH5OYTTsqXicdVkq+5rYP+tKdJv0+S4puEAQsiLUgEWLpVfSmBIoyGGnU4hUCUR
NDySoo5cjmevRUbd5Rvt76hOcYEHPmQOfT3se3wf0fY1sDkcUTK82UAz+3LypLzp
atd5keVmwkJC1xtJ+hXdvwL9u0zRD/IJCE1JZK7+w5CqB3AUaVBiwbqHfgvxjPWm
WF8bZSErciJM9u7pbFO/lXTcpqRZBC/r80a6bVv0tAtEU+MSgWxXgPqQsIKCDHib
JwWgD9jpAgMBAAECggEBAK3xbFFSbjvnmJTIPyu7tYuVS7Igijvo0V3bIeT/sSJP
gm0dkx0wJTjke80ET8pQJ2xzab/iqIP4yib2xzBx9fTaoq68ZL23WVYTbFLgdfTI
2LVfMq0k33B8mG/2wH8I58nzF9wxUsLqS7Qy6qo+uiyaaSaD9DjeQn6dSLJfPT+B
7cG1lKJVnpMEmjCc8b7x7jB2wMIuGVHbNEm+FRe94S8wm+psb6q7eG7JF2PDqsJp
Hm+s0jhjwICS4rSTJ9gsg4YNAHx/xnWJn6nZiXh+mu5Irhb2kEQuE1xX1Fhy5GBI
qqij2kFAqjn8PZ+RMsH43ITTf17eVq/lMkqcaHJtwgECgYEA8tutP46emqtLgDnp
F82tFweQ+luQqohNcaIg4SOIh7eAik15lWYSYSSzsIpBcM9aVJ/ZdCrI9DD/Ba/n
jUfoSsPo8PYy59zuGaheUyiQpUva2NNUSGkwQ4aT5aVVyn0cksCCq3ZoQ8wmu1aK
JKgzRtQhkZMWOG8aJ+ie1s/PIKkCgYEA8j7TM6w1CELI6j/Xsb9VUr7m/GsU76CN
W4eu3yOq6KSkXw8RveYzcHxdyP1TNn10e0n21BjYCKr001q+xgfwUMYcxxpwi+H2
RXxyDwjXHmw5VVDXXH8uGHUFC2iYRENKTGmRV4EWc+XnRYk7O41/nsxMqPeBENhT
cfMAeZa23kECgYA/kwozTR5v1s+Y7Y/7Tzg0gyKMp1OjkLLVQF/jD+45uOvJSKa/
WU0OaREw8cBXy7AV3xKJunmIkxrvXjD7ZwuEJuzfx1NkJw2dYdnvYvsailTr1caG
fiLISn6E61cd/spwED0krYZ12Qd6mxjmp7FkpTt0ZFC4zTzHnbmW+id6oQKBgGDB
NxosbgIeqqDlXwFfqnSiSyAGpRYQymUEjJQTavAA0qYlHrD6gREsm0jr5ZCeCygz
IqMUSTUtExxX4lq2UQXyGwxrQwib+AFI80WOAl3kXAH3iA0pvv+Fvb4QyMB7H/Hl
OGf65zzjVrwvU7k1iwOiFfxm3uYbgTjCFi56RBABAoGBAMpRrYBQ4qfVLtIMqnXH
xSPMN109PpG74ooyDSmnQutqKx+cnz6PWid+gK/KKZKdh5DG/ScVFCHGy+YqImnA
ein9E7+uV6mbOzMnQGKm2Q5vbuG/UWY7bLVoxMN0XS1PTMk/fCC75l1gX1BsO1UX
mBctbrmbnZ3Of6966dUuGXnS
-----END PRIVATE KEY-----
+17
View File
@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE-----
MIICvjCCAaYCCQDS+w+GXVpJsDANBgkqhkiG9w0BAQsFADAhMQswCQYDVQQGEwJE
RTESMBAGA1UECgwJZGV2LmxvY2FsMB4XDTIyMTIxMDA1MjgxMloXDTIzMDEwOTA1
MjgxMlowITELMAkGA1UEBhMCREUxEjAQBgNVBAoMCWRldi5sb2NhbDCCASIwDQYJ
KoZIhvcNAQEBBQADggEPADCCAQoCggEBAOXPQ1YfI0aNUJEVdqFprGGtVMCZ5WIQ
sk7elS2KqljCHFX6eqpFR8FrQoZgcDVsi4zjX85bAdCPAW2ikfk5hNOypeJx1WSr
7mtg/60p0m/T5Lim4QBCyItSARYulV9KYEijIYadTiFQJRE0PJKijlyOZ69FRt3l
G+3vqE5xgQc+ZA59Pex7fB/R9jWwORxRMrzZQDP7cvKkvOlq13mR5WbCQkLXG0n6
Fd2/Av27TNEP8gkITUlkrv7DkKoHcBRpUGLBuod+C/GM9aZYXxtlIStyIkz27uls
U7+VdNympFkEL+vzRrptW/S0C0RT4xKBbFeA+pCwgoIMeJsnBaAP2OkCAwEAATAN
BgkqhkiG9w0BAQsFAAOCAQEAOJ3+a1d06LN83gh3iNEvwWNudKVPi7MvyltW2WVB
zQBoN2wCYC0crl7PRxXqACvpw2nE2qZaJ0KrrbVWUVMf2lAwRKk4g2F3WcwBjqak
WwWEgIDuocLt1WX5nHbI6hb9E2jAwa8wpYbAiRQF5HnZGxI+1ZXKROZvhOPIiAVT
v4jTPGr5lgxJ1lKqnVRfKIHZlPWPFGTmuwSkuq+9lwqp/HdCOIiV54c5yi0XBMvE
jLhqoE5cxSVNswLF7thD7B2E1NTpyH83Z7rHtK/HDHinUVfOTKhnt15JAf2I2zwh
9HErW/Bz4zQlmmBL0uMpgOjTix9h55p2JMuM7/Bd7ng2Dg==
-----END CERTIFICATE-----
+20
View File
@@ -0,0 +1,20 @@
# Hook scripts
Scripts in this directory will be picked up by the docker containers
automatically. They can be used for automating setup specific to a developers
use cases
- For all Nextcloud containers:
- before-install.sh
- after-install.sh
## Example for before-start.sh
```bash
#!/bin/bash
echo "🤖 triggered hook before-start.sh"
env
export OC_PASS="mycustomuser"
occ user:add --password-from-env mycustomuser
```
+415 -112
View File
@@ -7,8 +7,8 @@ services:
proxy:
image: ghcr.io/juliushaertl/nextcloud-dev-nginx:latest
ports:
- "80:80"
- "443:443"
- "${PROXY_PORT_HTTP:-80}:80"
- "${PROXY_PORT_HTTPS:-443}:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- ./data/ssl/:/etc/nginx/certs
@@ -34,7 +34,13 @@ services:
- stable22${DOMAIN_SUFFIX}
- stable23${DOMAIN_SUFFIX}
- stable24${DOMAIN_SUFFIX}
- stable25${DOMAIN_SUFFIX}
- stable26${DOMAIN_SUFFIX}
- stable27${DOMAIN_SUFFIX}
- stable28${DOMAIN_SUFFIX}
- mail${DOMAIN_SUFFIX}
- collabora${DOMAIN_SUFFIX}
- codedev${DOMAIN_SUFFIX}
- onlyoffice${DOMAIN_SUFFIX}
- proxy${DOMAIN_SUFFIX}
- hpb${DOMAIN_SUFFIX}
@@ -46,6 +52,9 @@ services:
- lookup${DOMAIN_SUFFIX}
- elasticsearch${DOMAIN_SUFFIX}
- elasticsearch-ui${DOMAIN_SUFFIX}
- pgadmin${DOMAIN_SUFFIX}
- phpmyadmin${DOMAIN_SUFFIX}
- talk-signaling${DOMAIN_SUFFIX}
haproxy:
image: haproxy
@@ -57,10 +66,10 @@ services:
- ./docker/configs/haproxy.conf:/usr/local/etc/haproxy/haproxy.cfg:ro
nextcloud:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-74}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest
environment:
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL: ${NEXTCLOUD_AUTOINSTALL:-YES}
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: "nextcloud${DOMAIN_SUFFIX}"
@@ -68,288 +77,548 @@ services:
NEXTCLOUD_TRUSTED_DOMAINS:
BLACKFIRE_CLIENT_ID:
BLACKFIRE_CLIENT_TOKEN:
PRIMARY: ${PRIMARY}
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${REPO_PATH_SERVER:-/home/jus/repos/nextcloud/server}:/var/www/html'
- '${REPO_PATH_SERVER}:/var/www/html'
- '${REPO_PATH_SERVER}/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- data:/var/www/html/data
- config:/var/www/html/config
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-extra'
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
ports:
- "${PORTBASE:-800}0:80"
depends_on:
- ${DB_SERVICE:-database-mysql}
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
nextcloud2:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-73}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest
environment:
SQL: 'mysql'
VIRTUAL_HOST: "nextcloud2${DOMAIN_SUFFIX}"
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${REPO_PATH_SERVER:-/home/jus/repos/nextcloud/server}:/var/www/html'
- '${REPO_PATH_SERVER}:/var/www/html'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-extra'
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
ports:
- "${PORTBASE:-800}1:80"
depends_on:
- database-mysql
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
nextcloud3:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-73}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest
environment:
SQL: 'mysql'
SQL: ${SQL:-mysql}
VIRTUAL_HOST: "nextcloud3${DOMAIN_SUFFIX}"
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${REPO_PATH_SERVER:-/home/jus/repos/nextcloud/server}:/var/www/html'
- '${REPO_PATH_SERVER}:/var/www/html'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-extra'
- ./data/skeleton/:/skeleton
- ./docker/configs/config.php:/var/www/html/config/writable.config.php:ro
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
depends_on:
- database-mysql
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable16:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-72}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-73}:latest
environment:
SQL: 'sqlite'
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable16${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable16:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable16/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/stable16:/var/www/html'
- '${STABLE_ROOT_PATH}/stable16/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable17:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-72}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-73}:latest
environment:
SQL: 'sqlite'
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable17${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable17:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable17/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/stable17:/var/www/html'
- '${STABLE_ROOT_PATH}/stable17/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable18:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-73}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-74}:latest
environment:
SQL: 'sqlite'
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable18${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable18:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable18/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/stable18:/var/www/html'
- '${STABLE_ROOT_PATH}/stable18/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
ports:
- "${PORTBASE:-800}0:80"
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable19:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-72}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-74}:latest
environment:
SQL: 'sqlite'
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable19${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable19:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable19/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/stable19:/var/www/html'
- '${STABLE_ROOT_PATH}/stable19/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable20:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-72}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-74}:latest
environment:
SQL: 'sqlite'
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable20${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable20:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable20/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/stable20:/var/www/html'
- '${STABLE_ROOT_PATH}/stable20/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable21:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-73}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-80}:latest
environment:
SQL: 'sqlite'
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable21${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PRIMARY: ${PRIMARY}
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable21:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable21/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/stable21:/var/www/html'
- '${STABLE_ROOT_PATH}/stable21/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable22:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-73}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-80}:latest
environment:
SQL: 'sqlite'
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable22${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PRIMARY: ${PRIMARY}
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable22:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable22/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/stable22:/var/www/html'
- '${STABLE_ROOT_PATH}/stable22/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
extra_hosts:
- host.docker.internal:host-gateway
stable24:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-74}:latest
environment:
SQL: 'mysql'
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable24${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable24:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable24/apps-extra:/var/www/html/apps-extra'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
depends_on:
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable23:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-73}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-80}:latest
environment:
SQL: 'sqlite'
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable23${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PRIMARY: ${PRIMARY}
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable23:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/stable23/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/stable23:/var/www/html'
- '${STABLE_ROOT_PATH}/stable23/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable24:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-80}:latest
environment:
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable24${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PRIMARY: ${PRIMARY}
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH}/stable24:/var/www/html'
- '${STABLE_ROOT_PATH}/stable24/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable25:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest
environment:
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable25${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PRIMARY: ${PRIMARY}
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH}/stable25:/var/www/html'
- '${STABLE_ROOT_PATH}/stable25/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable26:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest
environment:
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable26${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PRIMARY: ${PRIMARY}
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH}/stable26:/var/www/html'
- '${STABLE_ROOT_PATH}/stable26/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable27:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest
environment:
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable27${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PRIMARY: ${PRIMARY}
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH}/stable27:/var/www/html'
- '${STABLE_ROOT_PATH}/stable27/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
stable28:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest
environment:
SQL: ${SQL:-mysql}
NEXTCLOUD_AUTOINSTALL: "YES"
NEXTCLOUD_AUTOINSTALL_APPS:
WITH_REDIS: "YES"
VIRTUAL_HOST: stable28${DOMAIN_SUFFIX}
ADDITIONAL_APPS_PATH:
NEXTCLOUD_TRUSTED_DOMAINS:
PRIMARY: ${PRIMARY}
PHP_XDEBUG_MODE: ${PHP_XDEBUG_MODE:-develop}
volumes:
- '${STABLE_ROOT_PATH}/stable28:/var/www/html'
- '${STABLE_ROOT_PATH}/stable28/apps-extra:/var/www/html/apps-extra'
- '${ADDITIONAL_APPS_PATH:-./data/apps-extra}:/var/www/html/apps-shared'
- /var/www/html/data
- /var/www/html/config
- /var/www/html/apps-writable
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
- ./data/shared:/shared
depends_on:
- database-${SQL}
- redis
- mail
- ${PROXY_SERVICE:-proxy}
extra_hosts:
- host.docker.internal:host-gateway
database-sqlite:
image: rwgrim/docker-noop
database-mysql:
image: mariadb:10.5
image: mariadb:10.6
environment:
MYSQL_ROOT_PASSWORD: 'nextcloud'
MYSQL_PASSWORD: 'nextcloud'
MYSQL_USER: 'nextcloud'
MYSQL_DATABASE: 'nextcloud'
command: [
'--wait_timeout=300',
]
ports:
- "${PORTBASE:-800}2:3306"
volumes:
- mysql:/var/lib/mysql
database-mariadb-primary:
image: docker.io/bitnami/mariadb:10.6
ports:
- '3306'
volumes:
- 'mariadb_primary_data:/bitnami/mariadb'
environment:
- MARIADB_REPLICATION_MODE=master
- MARIADB_REPLICATION_USER=repl_user
- MARIADB_REPLICATION_PASSWORD=repl_password
- MARIADB_ROOT_PASSWORD=nextcloud
- MARIADB_USER=nextcloud
- MARIADB_PASSWORD=nextcloud
- MARIADB_DATABASE=nextcloud
database-mariadb-replica:
image: docker.io/bitnami/mariadb:10.6
ports:
- '3306'
depends_on:
- database-mariadb-primary
environment:
- MARIADB_REPLICATION_MODE=slave
- MARIADB_REPLICATION_USER=repl_user
- MARIADB_REPLICATION_PASSWORD=repl_password
- MARIADB_MASTER_HOST=database-mariadb-primary
- MARIADB_MASTER_PORT_NUMBER=3306
- MARIADB_MASTER_ROOT_PASSWORD=nextcloud
# This can be useful for testing but should be enabled only after a setup is completed
# - MARIADB_MASTER_DELAY=10
database-maxscale:
image: mariadb/maxscale:latest
depends_on:
- database-mariadb-primary
- database-mariadb-replica
volumes:
- './docker/maxscale/my-maxscale.cnf:/etc/maxscale.cnf.d/my-maxscale.cnf'
ports:
- '3306'
database-postgres:
image: postgres:latest
environment:
POSTGRES_DB: nextcloud
POSTGRES_PASSWORD: postgres
expose:
- 5432
ports:
- "${PORTBASE:-800}2:5432"
volumes:
- postgres:/var/lib/postgresql
database-oci:
image: ghcr.io/gvenzl/oracle-xe:18
environment:
ORACLE_PASSWORD: nextcloud
APP_USER: nextcloud
APP_USER_PASSWORD: nextcloud
ORACLE_DATABASE: nextcloud
ports:
- 1521:1521/tcp
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
VIRTUAL_HOST: "pgadmin${DOMAIN_SUFFIX}"
PGADMIN_DEFAULT_EMAIL: pgadmin4@nextcloud.local
PGADMIN_DEFAULT_PASSWORD: postgres
PGADMIN_CONFIG_SERVER_MODE: 'False'
PGADMIN_SERVER_JSON_FILE: /pgadmin4/config/servers.json
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
volumes:
- "./data/pgadmin/config:/pgadmin4/config"
depends_on:
- ${PROXY_SERVICE:-proxy}
redis:
image: redis:6
image: redis:7
ldap:
image: osixia/openldap
@@ -439,22 +708,38 @@ services:
aliasgroup2: http://gs1${DOMAIN_SUFFIX}
aliasgroup3: http://gs2${DOMAIN_SUFFIX}
aliasgroup4: http://stable20${DOMAIN_SUFFIX}
aliasgroup5: http://stable21${DOMAIN_SUFFIX}
aliasgroup6: http://stable22${DOMAIN_SUFFIX}
aliasgroup7: http://stable23${DOMAIN_SUFFIX}
aliasgroup8: http://stable24${DOMAIN_SUFFIX}
aliasgroup5: http://stable24${DOMAIN_SUFFIX}
aliasgroup6: http://stable25${DOMAIN_SUFFIX}
aliasgroup7: http://stable26${DOMAIN_SUFFIX}
aliasgroup8: http://stable27${DOMAIN_SUFFIX}
aliasgroup9: http://stable28${DOMAIN_SUFFIX}
dictionaries: de_DE en_US en_GB
username: admin
password: admin
VIRTUAL_HOST: collabora${DOMAIN_SUFFIX}
VIRTUAL_PORT: 9980
VIRTUAL_PROTO: http
extra_params: "--o:ssl.enable=false --o:net.frame_ancestors=*${DOMAIN_SUFFIX}"
server_name: collabora${DOMAIN_SUFFIX}
extra_params: "--o:ssl.enable=false --o:net.frame_ancestors=*${DOMAIN_SUFFIX} --o:home_mode.enable=true --o:ssl.termination=false ${COLLABORA_PARAMS:-}"
codedev:
privileged: true
build:
context: ./docker/codedev
environment:
VIRTUAL_HOST: "codedev${DOMAIN_SUFFIX}"
VIRTUAL_PORT: 9980
volumes:
- /Users/julius/repos/collaboraonline:/collabora
command: >
tail -f /dev/null
onlyoffice:
image: ${CONTAINER_ONLYOFFICE:-onlyoffice/documentserver:latest}
image: onlyoffice/documentserver:latest
environment:
VIRTUAL_HOST: onlyoffice${DOMAIN_SUFFIX}
USE_UNAUTHORIZED_STORAGE: "true"
JWT_SECRET: secret
expose:
- '80'
volumes:
@@ -465,8 +750,10 @@ services:
image: minio/minio
environment:
VIRTUAL_HOST: minio${DOMAIN_SUFFIX}
VIRTUAL_PORT: 9001
MINIO_ROOT_USER: nextcloud
MINIO_ROOT_PASSWORD: nextcloud
MINIO_BROWSER_REDIRECT_URL: ${PROTOCOL}://minio${DOMAIN_SUFFIX}
volumes:
- objectstorage_minio:/data
command: server /data --console-address :9001
@@ -474,7 +761,7 @@ services:
elasticsearch:
build:
context: ./docker
dockerfile: Dockerfile.elasticsearch
dockerfile: elasticsearch/Dockerfile
environment:
- ELASTIC_PASSWORD=elastic
- discovery.type=single-node
@@ -508,30 +795,29 @@ services:
push:
image: icewind1991/notify_push
ports:
- '8191:80'
image: ghcr.io/juliushaertl/nextcloud-dev-push:latest
environment:
RUST_LOG: debug
VIRTUAL_HOST: push${DOMAIN_SUFFIX}
VIRTUAL_PORT: 8191
DATABASE_URL: mysql://nextcloud:nextcloud@master_database-mysql_1/nextcloud
VIRTUAL_PORT: 7867
DATABASE_URL: mysql://root:nextcloud@database-mysql/nextcloud
REDIS_URL: redis://redis
NEXTCLOUD_URL: https://nextcloud.local.dev.bitgrid.net
NEXTCLOUD_URL: http://nextcloud
keycloak:
image: ${CONTAINER_KEYCLOAK:-quay.io/keycloak/keycloak:15.0.1}
image: quay.io/keycloak/keycloak:23.0
expose:
- 8080
volumes:
- ./docker/configs/keycloak:/tmp/keycloak
- ./docker/configs/keycloak:/opt/keycloak/data/import
command: start-dev --import-realm
environment:
VIRTUAL_HOST: "keycloak${DOMAIN_SUFFIX}"
VIRTUAL_PORT: 8080
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
PROXY_ADDRESS_FORWARDING: "true"
KEYCLOAK_IMPORT: /tmp/keycloak/realm-export.json
KC_PROXY: edge
av:
image: mkodockx/docker-clamav:alpine
@@ -541,21 +827,21 @@ services:
- clam:/var/lib/clamav
portal:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-74}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest
environment:
VIRTUAL_HOST: portal${DOMAIN_SUFFIX}
SQL: 'mysql'
GS_MODE: master
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/server:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/server/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/server:/var/www/html'
- '${STABLE_ROOT_PATH}/server/apps-extra:/var/www/html/apps-extra'
- /var/www/html/data
- /var/www/html/config
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
depends_on:
- proxy
- database-mysql
- ${PROXY_SERVICE:-proxy}
- database-${SQL}
- lookup
- redis
- mail
@@ -563,22 +849,22 @@ services:
- host.docker.internal:host-gateway
gs1:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-74}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest
environment:
VIRTUAL_HOST: gs1${DOMAIN_SUFFIX}
SQL: 'mysql'
GS_MODE: slave
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/server:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/server/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/server:/var/www/html'
- '${STABLE_ROOT_PATH}/server/apps-extra:/var/www/html/apps-extra'
- /var/www/html/data
- /var/www/html/config
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
depends_on:
- proxy
- ${PROXY_SERVICE:-proxy}
- portal
- database-mysql
- database-${SQL}
- lookup
- redis
- mail
@@ -586,22 +872,22 @@ services:
- host.docker.internal:host-gateway
gs2:
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-74}:latest
image: ghcr.io/juliushaertl/nextcloud-dev-php${PHP_VERSION:-81}:latest
environment:
VIRTUAL_HOST: gs2${DOMAIN_SUFFIX}
SQL: 'mysql'
GS_MODE: slave
volumes:
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/server:/var/www/html'
- '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/server/apps-extra:/var/www/html/apps-extra'
- '${STABLE_ROOT_PATH}/server:/var/www/html'
- '${STABLE_ROOT_PATH}/server/apps-extra:/var/www/html/apps-extra'
- /var/www/html/data
- /var/www/html/config
- ./data/skeleton/:/skeleton
- ./data/additional.config.php:/var/www/html/config/additional.config.php:ro
depends_on:
- proxy
- ${PROXY_SERVICE:-proxy}
- portal
- database-mysql
- database-${SQL}
- lookup
- redis
- mail
@@ -613,17 +899,33 @@ services:
environment:
VIRTUAL_HOST: "lookup${DOMAIN_SUFFIX}"
# volumes:
# - '${STABLE_ROOT_PATH:-/home/jus/repos/nextcloud}/lookupserver:/var/www/html'
# - '${STABLE_ROOT_PATH}/lookupserver:/var/www/html'
extra_hosts:
- host.docker.internal:host-gateway
previews_hpb:
image: h2non/imaginary
image: nextcloud/aio-imaginary:latest
ports:
- "8088:8088"
environment:
- PORT=8088
talk-signaling:
image: strukturag/nextcloud-spreed-signaling:latest
environment:
VIRTUAL_HOST: "talk-signaling${DOMAIN_SUFFIX}"
HTTP_LISTEN: "0.0.0.0:80"
HASH_KEY: "11111111111111111111111111111111"
BLOCK_KEY: "22222222222222222222222222222222"
USE_JANUS: 1
JANUS_URL: "ws://talk-janus:8188"
SKIP_VERIFY: 1
BACKENDS_ALLOWALL: 1
BACKENDS_ALLOWALL_SECRET: "1234"
INTERNAL_SHARED_SECRET_KEY: "4567"
talk-janus:
image: ghcr.io/juliushaertl/nextcloud-dev-talk-janus:latest
volumes:
data:
@@ -639,6 +941,7 @@ volumes:
smbhomes:
elasticsearch_data:
clam:
mariadb_primary_data:
networks:
default:
-5
View File
@@ -1,5 +0,0 @@
FROM nginxproxy/nginx-proxy:latest
RUN { \
echo 'server_tokens off;'; \
echo 'client_max_body_size 1024m;'; \
} > /etc/nginx/conf.d/my_proxy.conf
+62 -54
View File
@@ -1,58 +1,49 @@
FROM php:8.1-apache
FROM php:8.2-apache
RUN apt-get update && apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng-dev \
libpq-dev \
libxml2-dev \
libzip-dev \
libmagickwand-dev \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
&& rm -rf /var/lib/apt/lists/*
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
gd \
intl \
ldap \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
zip
RUN chmod +x /usr/local/bin/install-php-extensions
RUN pecl install APCu; \
pecl install memcached; \
pecl install redis; \
pecl install xdebug; \
pecl install imagick; \
pecl install smbclient; \
pecl install mcrypt; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
xdebug \
imagick \
smbclient; \
docker-php-source delete && \
rm -r /tmp/* /var/cache/*
RUN install-php-extensions \
apcu \
bcmath \
blackfire \
exif \
gd \
gmp \
imagick \
intl \
ldap \
memcached \
oci8 \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
smbclient \
sysvsem \
xdebug \
zip \
@composer
# dev tools separate install so we quickly change without rebuilding all php extenions
# dev tools separate install so we quickly change without rebuilding all php extensions
RUN apt update && apt-get install -y --no-install-recommends \
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep \
&& rm -rf /var/lib/apt/lists/*
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep rsync mariadb-client \
&& rm -rf /var/lib/apt/lists/*
# Install PHPUnit
RUN wget -O /usr/local/bin/phpunit8 https://phar.phpunit.de/phpunit-8.phar \
&& chmod +x /usr/local/bin/phpunit8 \
&& wget -O /usr/local/bin/phpunit9 https://phar.phpunit.de/phpunit-9.phar \
&& chmod +x /usr/local/bin/phpunit9
# Install NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& export NVM_DIR="/root/.nvm" \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 14 && nvm install 16 && nvm install 20 \
&& nvm alias default 20
RUN wget https://gist.githubusercontent.com/nickvergessen/e21ee0a09ee3b3f7fd1b04c83dd3e114/raw/83142be1e50c23e8de1bd7aae88a95e5d6ae1ce2/nextcloud_log.json && lnav -i nextcloud_log.json && rm nextcloud_log.json
@@ -74,13 +65,29 @@ ADD configs/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
RUN wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add - \
&& echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends blackfire-php blackfire \
&& printf "blackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini \
&& (apt-get install -y --no-install-recommends blackfire \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-blackfire.ini \
&& printf "\n\nblackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini && \
mv $PHP_INI_DIR/conf.d/zz-blackfire.ini $PHP_INI_DIR/conf.d/zz-blackfire.ini.disabled) \
|| echo "Skipped blackfire as the installation failed" \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN a2enmod rewrite
# mod_rewrite
RUN a2enmod rewrite headers
# increase limit request body
RUN echo "LimitRequestBody 0" > /etc/apache2/conf-available/limit-request-body.conf && a2enconf limit-request-body
VOLUME /var/www/html
VOLUME /var/www/html/apps-writable
VOLUME /var/www/html/config
VOLUME /var/www/html/data
ENV SQL sqlite
ENV NEXTCLOUD_AUTOINSTALL YES
ENV WITH_REDIS NO
ENV WEBROOT /var/www/html
WORKDIR /var/www/html
@@ -88,5 +95,6 @@ WORKDIR /var/www/html
ENTRYPOINT ["/usr/local/bin/bootstrap.sh"]
CMD ["apache2-foreground"]
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/config.php configs/redis.config.php /root/
ADD data/installing.html /root/installing.html
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/default.config.php configs/storage.config.php configs/redis.config.php configs/apcu.config.php /root/
ADD bin/bootstrap.sh bin/occ /usr/local/bin/
+61 -53
View File
@@ -1,58 +1,49 @@
FROM php:7.1-apache
RUN apt-get update && apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng-dev \
libpq-dev \
libxml2-dev \
libzip-dev \
libmagickwand-dev \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
&& rm -rf /var/lib/apt/lists/*
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
gd \
intl \
ldap \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
zip
RUN chmod +x /usr/local/bin/install-php-extensions
RUN pecl install APCu; \
pecl install memcached; \
pecl install redis; \
pecl install xdebug; \
pecl install imagick; \
pecl install smbclient; \
pecl install mcrypt; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
xdebug \
imagick \
smbclient; \
docker-php-source delete && \
rm -r /tmp/* /var/cache/*
RUN install-php-extensions \
apcu \
bcmath \
blackfire \
exif \
gd \
gmp \
imagick \
intl \
ldap \
memcached \
oci8 \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
smbclient \
sysvsem \
xdebug \
zip \
@composer
# dev tools separate install so we quickly change without rebuilding all php extenions
# dev tools separate install so we quickly change without rebuilding all php extensions
RUN apt update && apt-get install -y --no-install-recommends \
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep \
&& rm -rf /var/lib/apt/lists/*
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep rsync mariadb-client \
&& rm -rf /var/lib/apt/lists/*
# Install PHPUnit
RUN wget -O /usr/local/bin/phpunit8 https://phar.phpunit.de/phpunit-8.phar \
&& chmod +x /usr/local/bin/phpunit8 \
&& wget -O /usr/local/bin/phpunit9 https://phar.phpunit.de/phpunit-9.phar \
&& chmod +x /usr/local/bin/phpunit9
# Install NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& export NVM_DIR="/root/.nvm" \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 14 && nvm install 16 && nvm install 20 \
&& nvm alias default 20
RUN wget https://gist.githubusercontent.com/nickvergessen/e21ee0a09ee3b3f7fd1b04c83dd3e114/raw/83142be1e50c23e8de1bd7aae88a95e5d6ae1ce2/nextcloud_log.json && lnav -i nextcloud_log.json && rm nextcloud_log.json
@@ -74,13 +65,29 @@ ADD configs/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
RUN wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add - \
&& echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends blackfire-php blackfire \
&& printf "blackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini \
&& (apt-get install -y --no-install-recommends blackfire \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-blackfire.ini \
&& printf "\n\nblackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini && \
mv $PHP_INI_DIR/conf.d/zz-blackfire.ini $PHP_INI_DIR/conf.d/zz-blackfire.ini.disabled) \
|| echo "Skipped blackfire as the installation failed" \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN a2enmod rewrite
# mod_rewrite
RUN a2enmod rewrite headers
# increase limit request body
RUN echo "LimitRequestBody 0" > /etc/apache2/conf-available/limit-request-body.conf && a2enconf limit-request-body
VOLUME /var/www/html
VOLUME /var/www/html/apps-writable
VOLUME /var/www/html/config
VOLUME /var/www/html/data
ENV SQL sqlite
ENV NEXTCLOUD_AUTOINSTALL YES
ENV WITH_REDIS NO
ENV WEBROOT /var/www/html
WORKDIR /var/www/html
@@ -88,5 +95,6 @@ WORKDIR /var/www/html
ENTRYPOINT ["/usr/local/bin/bootstrap.sh"]
CMD ["apache2-foreground"]
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/config.php configs/redis.config.php /root/
ADD data/installing.html /root/installing.html
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/default.config.php configs/storage.config.php configs/redis.config.php configs/apcu.config.php /root/
ADD bin/bootstrap.sh bin/occ /usr/local/bin/
+61 -53
View File
@@ -1,58 +1,49 @@
FROM php:7.2-apache
RUN apt-get update && apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng-dev \
libpq-dev \
libxml2-dev \
libzip-dev \
libmagickwand-dev \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
&& rm -rf /var/lib/apt/lists/*
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
gd \
intl \
ldap \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
zip
RUN chmod +x /usr/local/bin/install-php-extensions
RUN pecl install APCu; \
pecl install memcached; \
pecl install redis; \
pecl install xdebug; \
pecl install imagick; \
pecl install smbclient; \
pecl install mcrypt; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
xdebug \
imagick \
smbclient; \
docker-php-source delete && \
rm -r /tmp/* /var/cache/*
RUN install-php-extensions \
apcu \
bcmath \
blackfire \
exif \
gd \
gmp \
imagick \
intl \
ldap \
memcached \
oci8 \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
smbclient \
sysvsem \
xdebug \
zip \
@composer
# dev tools separate install so we quickly change without rebuilding all php extenions
# dev tools separate install so we quickly change without rebuilding all php extensions
RUN apt update && apt-get install -y --no-install-recommends \
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep \
&& rm -rf /var/lib/apt/lists/*
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep rsync mariadb-client \
&& rm -rf /var/lib/apt/lists/*
# Install PHPUnit
RUN wget -O /usr/local/bin/phpunit8 https://phar.phpunit.de/phpunit-8.phar \
&& chmod +x /usr/local/bin/phpunit8 \
&& wget -O /usr/local/bin/phpunit9 https://phar.phpunit.de/phpunit-9.phar \
&& chmod +x /usr/local/bin/phpunit9
# Install NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& export NVM_DIR="/root/.nvm" \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 14 && nvm install 16 && nvm install 20 \
&& nvm alias default 20
RUN wget https://gist.githubusercontent.com/nickvergessen/e21ee0a09ee3b3f7fd1b04c83dd3e114/raw/83142be1e50c23e8de1bd7aae88a95e5d6ae1ce2/nextcloud_log.json && lnav -i nextcloud_log.json && rm nextcloud_log.json
@@ -74,13 +65,29 @@ ADD configs/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
RUN wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add - \
&& echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends blackfire-php blackfire \
&& printf "blackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini \
&& (apt-get install -y --no-install-recommends blackfire \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-blackfire.ini \
&& printf "\n\nblackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini && \
mv $PHP_INI_DIR/conf.d/zz-blackfire.ini $PHP_INI_DIR/conf.d/zz-blackfire.ini.disabled) \
|| echo "Skipped blackfire as the installation failed" \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN a2enmod rewrite
# mod_rewrite
RUN a2enmod rewrite headers
# increase limit request body
RUN echo "LimitRequestBody 0" > /etc/apache2/conf-available/limit-request-body.conf && a2enconf limit-request-body
VOLUME /var/www/html
VOLUME /var/www/html/apps-writable
VOLUME /var/www/html/config
VOLUME /var/www/html/data
ENV SQL sqlite
ENV NEXTCLOUD_AUTOINSTALL YES
ENV WITH_REDIS NO
ENV WEBROOT /var/www/html
WORKDIR /var/www/html
@@ -88,5 +95,6 @@ WORKDIR /var/www/html
ENTRYPOINT ["/usr/local/bin/bootstrap.sh"]
CMD ["apache2-foreground"]
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/config.php configs/redis.config.php /root/
ADD data/installing.html /root/installing.html
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/default.config.php configs/storage.config.php configs/redis.config.php configs/apcu.config.php /root/
ADD bin/bootstrap.sh bin/occ /usr/local/bin/
+61 -53
View File
@@ -1,58 +1,49 @@
FROM php:7.3-apache
RUN apt-get update && apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng-dev \
libpq-dev \
libxml2-dev \
libzip-dev \
libmagickwand-dev \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
&& rm -rf /var/lib/apt/lists/*
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
gd \
intl \
ldap \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
zip
RUN chmod +x /usr/local/bin/install-php-extensions
RUN pecl install APCu; \
pecl install memcached; \
pecl install redis; \
pecl install xdebug; \
pecl install imagick; \
pecl install smbclient; \
pecl install mcrypt; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
xdebug \
imagick \
smbclient; \
docker-php-source delete && \
rm -r /tmp/* /var/cache/*
RUN install-php-extensions \
apcu \
bcmath \
blackfire \
exif \
gd \
gmp \
imagick \
intl \
ldap \
memcached \
oci8 \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
smbclient \
sysvsem \
xdebug \
zip \
@composer
# dev tools separate install so we quickly change without rebuilding all php extenions
# dev tools separate install so we quickly change without rebuilding all php extensions
RUN apt update && apt-get install -y --no-install-recommends \
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep \
&& rm -rf /var/lib/apt/lists/*
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep rsync mariadb-client \
&& rm -rf /var/lib/apt/lists/*
# Install PHPUnit
RUN wget -O /usr/local/bin/phpunit8 https://phar.phpunit.de/phpunit-8.phar \
&& chmod +x /usr/local/bin/phpunit8 \
&& wget -O /usr/local/bin/phpunit9 https://phar.phpunit.de/phpunit-9.phar \
&& chmod +x /usr/local/bin/phpunit9
# Install NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& export NVM_DIR="/root/.nvm" \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 14 && nvm install 16 && nvm install 20 \
&& nvm alias default 20
RUN wget https://gist.githubusercontent.com/nickvergessen/e21ee0a09ee3b3f7fd1b04c83dd3e114/raw/83142be1e50c23e8de1bd7aae88a95e5d6ae1ce2/nextcloud_log.json && lnav -i nextcloud_log.json && rm nextcloud_log.json
@@ -74,13 +65,29 @@ ADD configs/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
RUN wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add - \
&& echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends blackfire-php blackfire \
&& printf "blackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini \
&& (apt-get install -y --no-install-recommends blackfire \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-blackfire.ini \
&& printf "\n\nblackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini && \
mv $PHP_INI_DIR/conf.d/zz-blackfire.ini $PHP_INI_DIR/conf.d/zz-blackfire.ini.disabled) \
|| echo "Skipped blackfire as the installation failed" \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN a2enmod rewrite
# mod_rewrite
RUN a2enmod rewrite headers
# increase limit request body
RUN echo "LimitRequestBody 0" > /etc/apache2/conf-available/limit-request-body.conf && a2enconf limit-request-body
VOLUME /var/www/html
VOLUME /var/www/html/apps-writable
VOLUME /var/www/html/config
VOLUME /var/www/html/data
ENV SQL sqlite
ENV NEXTCLOUD_AUTOINSTALL YES
ENV WITH_REDIS NO
ENV WEBROOT /var/www/html
WORKDIR /var/www/html
@@ -88,5 +95,6 @@ WORKDIR /var/www/html
ENTRYPOINT ["/usr/local/bin/bootstrap.sh"]
CMD ["apache2-foreground"]
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/config.php configs/redis.config.php /root/
ADD data/installing.html /root/installing.html
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/default.config.php configs/storage.config.php configs/redis.config.php configs/apcu.config.php /root/
ADD bin/bootstrap.sh bin/occ /usr/local/bin/
+61 -53
View File
@@ -1,58 +1,49 @@
FROM php:7.4-apache
RUN apt-get update && apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng-dev \
libpq-dev \
libxml2-dev \
libzip-dev \
libmagickwand-dev \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
&& rm -rf /var/lib/apt/lists/*
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
gd \
intl \
ldap \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
zip
RUN chmod +x /usr/local/bin/install-php-extensions
RUN pecl install APCu; \
pecl install memcached; \
pecl install redis; \
pecl install xdebug; \
pecl install imagick; \
pecl install smbclient; \
pecl install mcrypt; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
xdebug \
imagick \
smbclient; \
docker-php-source delete && \
rm -r /tmp/* /var/cache/*
RUN install-php-extensions \
apcu \
bcmath \
blackfire \
exif \
gd \
gmp \
imagick \
intl \
ldap \
memcached \
oci8 \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
smbclient \
sysvsem \
xdebug \
zip \
@composer
# dev tools separate install so we quickly change without rebuilding all php extenions
# dev tools separate install so we quickly change without rebuilding all php extensions
RUN apt update && apt-get install -y --no-install-recommends \
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep \
&& rm -rf /var/lib/apt/lists/*
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep rsync mariadb-client \
&& rm -rf /var/lib/apt/lists/*
# Install PHPUnit
RUN wget -O /usr/local/bin/phpunit8 https://phar.phpunit.de/phpunit-8.phar \
&& chmod +x /usr/local/bin/phpunit8 \
&& wget -O /usr/local/bin/phpunit9 https://phar.phpunit.de/phpunit-9.phar \
&& chmod +x /usr/local/bin/phpunit9
# Install NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& export NVM_DIR="/root/.nvm" \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 14 && nvm install 16 && nvm install 20 \
&& nvm alias default 20
RUN wget https://gist.githubusercontent.com/nickvergessen/e21ee0a09ee3b3f7fd1b04c83dd3e114/raw/83142be1e50c23e8de1bd7aae88a95e5d6ae1ce2/nextcloud_log.json && lnav -i nextcloud_log.json && rm nextcloud_log.json
@@ -74,13 +65,29 @@ ADD configs/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
RUN wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add - \
&& echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends blackfire-php blackfire \
&& printf "blackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini \
&& (apt-get install -y --no-install-recommends blackfire \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-blackfire.ini \
&& printf "\n\nblackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini && \
mv $PHP_INI_DIR/conf.d/zz-blackfire.ini $PHP_INI_DIR/conf.d/zz-blackfire.ini.disabled) \
|| echo "Skipped blackfire as the installation failed" \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN a2enmod rewrite
# mod_rewrite
RUN a2enmod rewrite headers
# increase limit request body
RUN echo "LimitRequestBody 0" > /etc/apache2/conf-available/limit-request-body.conf && a2enconf limit-request-body
VOLUME /var/www/html
VOLUME /var/www/html/apps-writable
VOLUME /var/www/html/config
VOLUME /var/www/html/data
ENV SQL sqlite
ENV NEXTCLOUD_AUTOINSTALL YES
ENV WITH_REDIS NO
ENV WEBROOT /var/www/html
WORKDIR /var/www/html
@@ -88,5 +95,6 @@ WORKDIR /var/www/html
ENTRYPOINT ["/usr/local/bin/bootstrap.sh"]
CMD ["apache2-foreground"]
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/config.php configs/redis.config.php /root/
ADD data/installing.html /root/installing.html
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/default.config.php configs/storage.config.php configs/redis.config.php configs/apcu.config.php /root/
ADD bin/bootstrap.sh bin/occ /usr/local/bin/
+61 -53
View File
@@ -1,58 +1,49 @@
FROM php:8.0-apache
RUN apt-get update && apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng-dev \
libpq-dev \
libxml2-dev \
libzip-dev \
libmagickwand-dev \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
&& rm -rf /var/lib/apt/lists/*
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
gd \
intl \
ldap \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
zip
RUN chmod +x /usr/local/bin/install-php-extensions
RUN pecl install APCu; \
pecl install memcached; \
pecl install redis; \
pecl install xdebug; \
pecl install imagick; \
pecl install smbclient; \
pecl install mcrypt; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
xdebug \
imagick \
smbclient; \
docker-php-source delete && \
rm -r /tmp/* /var/cache/*
RUN install-php-extensions \
apcu \
bcmath \
blackfire \
exif \
gd \
gmp \
imagick \
intl \
ldap \
memcached \
oci8 \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
smbclient \
sysvsem \
xdebug \
zip \
@composer
# dev tools separate install so we quickly change without rebuilding all php extenions
# dev tools separate install so we quickly change without rebuilding all php extensions
RUN apt update && apt-get install -y --no-install-recommends \
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep \
&& rm -rf /var/lib/apt/lists/*
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep rsync mariadb-client \
&& rm -rf /var/lib/apt/lists/*
# Install PHPUnit
RUN wget -O /usr/local/bin/phpunit8 https://phar.phpunit.de/phpunit-8.phar \
&& chmod +x /usr/local/bin/phpunit8 \
&& wget -O /usr/local/bin/phpunit9 https://phar.phpunit.de/phpunit-9.phar \
&& chmod +x /usr/local/bin/phpunit9
# Install NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& export NVM_DIR="/root/.nvm" \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 14 && nvm install 16 && nvm install 20 \
&& nvm alias default 20
RUN wget https://gist.githubusercontent.com/nickvergessen/e21ee0a09ee3b3f7fd1b04c83dd3e114/raw/83142be1e50c23e8de1bd7aae88a95e5d6ae1ce2/nextcloud_log.json && lnav -i nextcloud_log.json && rm nextcloud_log.json
@@ -74,13 +65,29 @@ ADD configs/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
RUN wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add - \
&& echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends blackfire-php blackfire \
&& printf "blackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini \
&& (apt-get install -y --no-install-recommends blackfire \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-blackfire.ini \
&& printf "\n\nblackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini && \
mv $PHP_INI_DIR/conf.d/zz-blackfire.ini $PHP_INI_DIR/conf.d/zz-blackfire.ini.disabled) \
|| echo "Skipped blackfire as the installation failed" \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN a2enmod rewrite
# mod_rewrite
RUN a2enmod rewrite headers
# increase limit request body
RUN echo "LimitRequestBody 0" > /etc/apache2/conf-available/limit-request-body.conf && a2enconf limit-request-body
VOLUME /var/www/html
VOLUME /var/www/html/apps-writable
VOLUME /var/www/html/config
VOLUME /var/www/html/data
ENV SQL sqlite
ENV NEXTCLOUD_AUTOINSTALL YES
ENV WITH_REDIS NO
ENV WEBROOT /var/www/html
WORKDIR /var/www/html
@@ -88,5 +95,6 @@ WORKDIR /var/www/html
ENTRYPOINT ["/usr/local/bin/bootstrap.sh"]
CMD ["apache2-foreground"]
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/config.php configs/redis.config.php /root/
ADD data/installing.html /root/installing.html
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/default.config.php configs/storage.config.php configs/redis.config.php configs/apcu.config.php /root/
ADD bin/bootstrap.sh bin/occ /usr/local/bin/
+61 -53
View File
@@ -1,58 +1,49 @@
FROM php:8.1-apache
RUN apt-get update && apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libldap2-dev \
libmcrypt-dev \
libmemcached-dev \
libpng-dev \
libpq-dev \
libxml2-dev \
libzip-dev \
libmagickwand-dev \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
&& rm -rf /var/lib/apt/lists/*
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
gd \
intl \
ldap \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
zip
RUN chmod +x /usr/local/bin/install-php-extensions
RUN pecl install APCu; \
pecl install memcached; \
pecl install redis; \
pecl install xdebug; \
pecl install imagick; \
pecl install smbclient; \
pecl install mcrypt; \
\
docker-php-ext-enable \
apcu \
memcached \
redis \
xdebug \
imagick \
smbclient; \
docker-php-source delete && \
rm -r /tmp/* /var/cache/*
RUN install-php-extensions \
apcu \
bcmath \
blackfire \
exif \
gd \
gmp \
imagick \
intl \
ldap \
memcached \
oci8 \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
smbclient \
sysvsem \
xdebug-^3.2 \
zip \
@composer
# dev tools separate install so we quickly change without rebuilding all php extenions
# dev tools separate install so we quickly change without rebuilding all php extensions
RUN apt update && apt-get install -y --no-install-recommends \
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep \
&& rm -rf /var/lib/apt/lists/*
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep rsync mariadb-client \
&& rm -rf /var/lib/apt/lists/*
# Install PHPUnit
RUN wget -O /usr/local/bin/phpunit8 https://phar.phpunit.de/phpunit-8.phar \
&& chmod +x /usr/local/bin/phpunit8 \
&& wget -O /usr/local/bin/phpunit9 https://phar.phpunit.de/phpunit-9.phar \
&& chmod +x /usr/local/bin/phpunit9
# Install NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& export NVM_DIR="/root/.nvm" \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 14 && nvm install 16 && nvm install 20 \
&& nvm alias default 20
RUN wget https://gist.githubusercontent.com/nickvergessen/e21ee0a09ee3b3f7fd1b04c83dd3e114/raw/83142be1e50c23e8de1bd7aae88a95e5d6ae1ce2/nextcloud_log.json && lnav -i nextcloud_log.json && rm nextcloud_log.json
@@ -74,13 +65,29 @@ ADD configs/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
RUN wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add - \
&& echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends blackfire-php blackfire \
&& printf "blackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini \
&& (apt-get install -y --no-install-recommends blackfire \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-blackfire.ini \
&& printf "\n\nblackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini && \
mv $PHP_INI_DIR/conf.d/zz-blackfire.ini $PHP_INI_DIR/conf.d/zz-blackfire.ini.disabled) \
|| echo "Skipped blackfire as the installation failed" \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN a2enmod rewrite
# mod_rewrite
RUN a2enmod rewrite headers
# increase limit request body
RUN echo "LimitRequestBody 0" > /etc/apache2/conf-available/limit-request-body.conf && a2enconf limit-request-body
VOLUME /var/www/html
VOLUME /var/www/html/apps-writable
VOLUME /var/www/html/config
VOLUME /var/www/html/data
ENV SQL sqlite
ENV NEXTCLOUD_AUTOINSTALL YES
ENV WITH_REDIS NO
ENV WEBROOT /var/www/html
WORKDIR /var/www/html
@@ -88,5 +95,6 @@ WORKDIR /var/www/html
ENTRYPOINT ["/usr/local/bin/bootstrap.sh"]
CMD ["apache2-foreground"]
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/s3.php configs/config.php configs/redis.config.php /root/
ADD data/installing.html /root/installing.html
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/default.config.php configs/storage.config.php configs/redis.config.php configs/apcu.config.php /root/
ADD bin/bootstrap.sh bin/occ /usr/local/bin/
-4
View File
@@ -1,4 +0,0 @@
.PHONY: Dockerfile.*
Dockerfile.*:
NAME=$$(echo $@ | sed 's/^.*\.//'); echo "=> Building image $$NAME"; \
(docker build -t ghcr.io/juliushaertl/nextcloud-dev-$$NAME:latest -f Dockerfile.$$NAME .)
+230 -77
View File
@@ -1,13 +1,44 @@
#!/bin/bash
# shellcheck disable=SC2181
# set -o xtrace
DOMAIN_SUFFIX=".$(echo "$VIRTUAL_HOST" | cut -d '.' -f2-)"
IS_STANDALONE=$([ -z "$VIRTUAL_HOST" ] && echo "true" )
indent() { sed 's/^/ /'; }
# Prepare waiting page during auto installation
cp /root/installing.html /var/www/html/installing.html
tee /etc/apache2/conf-enabled/install.conf << EOF
<Directory "/var/www/html">
AllowOverride None
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !/installing.html$
RewriteRule .* /installing.html [L]
</Directory>
EOF
pkill -USR1 apache2
output() {
echo "$@"
echo "$@" >> /var/www/html/installing.html
}
fatal() {
output "======================================================================================="
output "$@"
output "======================================================================================="
exit 1
}
OCC() {
output "occ" "$@"
# shellcheck disable=SC2068
sudo -E -u www-data "$WEBROOT/occ" $@ | indent
sudo -E -u www-data php "$WEBROOT/occ" $@ | indent
}
update_permission() {
@@ -15,27 +46,70 @@ update_permission() {
chown -R www-data:www-data "$WEBROOT"/data
chown www-data:www-data "$WEBROOT"/config
chown www-data:www-data "$WEBROOT"/config/config.php 2>/dev/null
if [ -f /shared/config.php ]
then
ln -sf /shared/config.php "$WEBROOT"/config/user.config.php
fi
}
configure_xdebug_mode() {
if [ -n "$PHP_XDEBUG_MODE" ]
then
sed -i "s/^xdebug.mode\s*=.*/xdebug.mode = ${PHP_XDEBUG_MODE//\//_}/" /usr/local/etc/php/conf.d/xdebug.ini
unset PHP_XDEBUG_MODE
else
echo "⚠ No value for PHP_XDEBUG_MODE was found. Not updating the setting."
fi
}
wait_for_other_containers() {
echo "⌛ Waiting for other containers"
if [ "$SQL" = "mysql" ]
then
echo " - MySQL"
while ! timeout 1 bash -c "(echo > /dev/tcp/database-mysql/3306) 2>/dev/null"; do sleep 2; done
[ $? -ne 0 ] && echo "⚠ Unable to connect to the MySQL server"
fi
if [ "$SQL" = "pgsql" ]
then
while ! timeout 1 bash -c "(echo > /dev/tcp/database-postgres/5432) 2>/dev/null"; do sleep 2; done
[ $? -ne 0 ] && echo "⚠ Unable to connect to the PostgreSQL server"
fi
sleep 2
[ $? -eq 0 ] && echo "✅ Database server ready"
output "⌛ Waiting for other containers"
retry_with_timeout() {
local cmd=$1
local timeout=$2
local error_message=$3
local START_TIME=$SECONDS
while ! bash -c "$cmd"; do
if [ "$((SECONDS - START_TIME))" -ge "$timeout" ]; then
fatal "$error_message"
fi
sleep 2
done
}
case "$SQL" in
"mysql" | "mariadb-replica")
output " - MySQL"
retry_with_timeout "(echo > /dev/tcp/database-$SQL/3306) 2>/dev/null" 30 "⚠ Unable to connect to the MySQL server"
sleep 2
;;
"pgsql")
retry_with_timeout "(echo > /dev/tcp/database-postgres/5432) 2>/dev/null" 30 "⚠ Unable to connect to the PostgreSQL server"
sleep 2
;;
"maxscale")
for node in database-mariadb-primary database-mariadb-replica; do
echo " - Waiting for $node"
retry_with_timeout "(echo > /dev/tcp/$node/3306) 2>/dev/null" 30 "⚠ Unable to reach to the $node"
retry_with_timeout "mysql -u root -pnextcloud -h $node -e 'SELECT 1' 2>/dev/null" 30 "⚠ Unable to connect to the $node"
echo "✅"
done
;;
*)
fatal 'Not implemented'
;;
esac
[ $? -eq 0 ] && output "✅ Database server ready"
}
configure_gs() {
OCC config:system:set lookup_server --value ""
OCC config:system:set lookup_server --value=""
if [[ "$IS_STANDALONE" = "true" ]]; then
return 0
fi
get_protocol
LOOKUP_SERVER="${PROTOCOL}://lookup${DOMAIN_SUFFIX}/index.php"
@@ -65,9 +139,13 @@ configure_gs() {
}
configure_ldap() {
if [[ "$IS_STANDALONE" = "true" ]]; then
return 0
fi
timeout 5 bash -c 'until echo > /dev/tcp/ldap/389; do sleep 0.5; done' 2>/dev/null
if [ $? -eq 0 ]; then
echo "LDAP server available"
output "LDAP server available"
export LDAP_USER_FILTER="(|(objectclass=inetOrgPerson))"
OCC app:enable user_ldap
@@ -96,38 +174,36 @@ configure_ldap() {
}
configure_oidc() {
if [[ "$IS_STANDALONE" = "true" ]]; then
return 0
fi
OCC app:enable user_oidc
get_protocol
OCC user_oidc:provider Keycloak -c nextcloud -s 09e3c268-d8bc-42f1-b7c6-74d307ef5fde -d "$PROTOCOL://keycloak.local.dev.bitgrid.net/auth/realms/Example/.well-known/openid-configuration"
OCC user_oidc:provider Keycloak -c nextcloud -s 09e3c268-d8bc-42f1-b7c6-74d307ef5fde -d "$PROTOCOL://keycloak${DOMAIN_SUFFIX}/realms/Example/.well-known/openid-configuration"
}
PROTOCOL=""
PROTOCOL="${PROTOCOL:-http}"
get_protocol() {
if [[ "$PROTOCOL" == "" ]]; then
echo " Detecting SSL..."
timeout 5 bash -c 'until echo > /dev/tcp/proxy/443; do sleep 0.5; done' 2>/dev/null
if [ $? -eq 0 ]; then
echo "🔑 SSL proxy available, configuring proxy settings"
PROTOCOL=https
else
echo "🗝 No SSL proxy, removing overwriteprotocol"
PROTOCOL=http
fi
fi
if [[ "$IS_STANDALONE" = "true" ]]; then
PROTOCOL=http
return 0
fi
}
configure_ssl_proxy() {
if [[ "$IS_STANDALONE" = "true" ]]; then
return 0
fi
get_protocol
if [[ "$PROTOCOL" == "https" ]]; then
echo "🔑 SSL proxy available, configuring proxy settings"
OCC config:system:set overwriteprotocol --value https
OCC config:system:set overwrite.cli.url --value "https://$VIRTUAL_HOST"
echo "🔑 SSL proxy available, configuring overwrite.cli.url accordingly"
OCC config:system:set overwrite.cli.url --value "https://$VIRTUAL_HOST" &
else
echo "🗝 No SSL proxy, removing overwriteprotocol"
OCC config:system:delete overwriteprotocol
OCC config:system:set overwrite.cli.url --value "http://$VIRTUAL_HOST"
echo "🗝 No SSL proxy, configuring overwrite.cli.url accordingly"
OCC config:system:set overwrite.cli.url --value "http://$VIRTUAL_HOST" &
fi
update-ca-certificates
}
@@ -139,60 +215,62 @@ configure_add_user() {
install() {
DBNAME=$(echo "$VIRTUAL_HOST" | cut -d '.' -f1)
SQLHOST="database-$SQL"
echo "database name will be $DBNAME"
if [ "$SQL" = "mysql" ]
then
cp /root/autoconfig_mysql.php "$WEBROOT"/config/autoconfig.php
sed -i "s/dbname' => 'nextcloud'/dbname' => '$DBNAME'/" "$WEBROOT/config/autoconfig.php"
SQLHOST=database-mysql
fi
if [ "$SQL" = "pgsql" ]
then
cp /root/autoconfig_pgsql.php "$WEBROOT"/config/autoconfig.php
sed -i "s/dbname' => 'nextcloud'/dbname' => '$DBNAME'/" "$WEBROOT/config/autoconfig.php"
SQLHOST=database-postgres
fi
if [ "$SQL" = "oci" ]
then
cp /root/autoconfig_oci.php "$WEBROOT"/config/autoconfig.php
fi
# We copy the default config to the container
cp /root/config.php "$WEBROOT"/config/config.php
chown -R www-data:www-data "$WEBROOT"/config/config.php
update_permission
USER="admin"
PASSWORD="admin"
echo "🔧 Starting auto installation"
run_hook_before_install
output "🔧 Starting auto installation"
if [ "$SQL" = "oci" ]; then
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="$SQL" --database-name=xe --database-host=$SQLHOST --database-user=system --database-pass=oracle
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="$SQL" --database-name=xe --database-host="$SQLHOST" --database-user=system --database-pass=oracle
elif [ "$SQL" = "pgsql" ]; then
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="$SQL" --database-name="$DBNAME" --database-host=$SQLHOST --database-user=postgres --database-pass=postgres
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="$SQL" --database-name="$DBNAME" --database-host="$SQLHOST" --database-user=postgres --database-pass=postgres
elif [ "$SQL" = "mysql" ]; then
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="$SQL" --database-name="$DBNAME" --database-host=$SQLHOST --database-user=root --database-pass=nextcloud
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="$SQL" --database-name="$DBNAME" --database-host="$SQLHOST" --database-user=root --database-pass=nextcloud
elif [ "$SQL" = "mariadb-replica" ]; then
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="mysql" --database-name="$DBNAME" --database-host="database-mariadb-primary" --database-user=root --database-pass=nextcloud
elif [ "$SQL" = "maxscale" ]; then
sleep 10
# FIXME only works for main container as maxscale does not pass root along
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="mysql" --database-name="$DBNAME" --database-host="database-mariadb-primary" --database-user=nextcloud --database-pass=nextcloud
OCC config:system:set dbhost --value="database-maxscale"
OCC config:system:set dbuser --value="nextcloud"
else
OCC maintenance:install --admin-user=$USER --admin-pass=$PASSWORD --database="$SQL"
fi;
output "🔧 Server installed"
output "🔧 Provisioning apps"
OCC app:disable password_policy
for app in $NEXTCLOUD_AUTOINSTALL_APPS; do
OCC app:enable "$app"
APP_ENABLED=$(OCC app:enable "$app")
output "$APP_ENABLED"
WAIT_TIME=0
until [[ $WAIT_TIME -eq ${NEXTCLOUD_AUTOINSTALL_APPS_WAIT_TIME:-0} ]] || [[ $APP_ENABLED =~ ${app}.*enabled$ ]]
do
# if app is not installed pause for 1 seconds and enable again
output "🔄 retrying"
sleep 1
APP_ENABLED=$(OCC app:enable "$app")
output "$APP_ENABLED"
((WAIT_TIME++))
done
done
configure_gs
configure_ldap
configure_oidc
output "🔧 Finetuning the configuration"
if [ "$WITH_REDIS" != "NO" ]; then
cp /root/redis.config.php "$WEBROOT"/config/
else
cp /root/apcu.config.php "$WEBROOT"/config/
fi
OCC user:setting admin settings email admin@example.net
# Setup domains
# localhost is at index 0 due to the installation
@@ -207,8 +285,14 @@ install() {
NC_TRUSTED_DOMAIN_IDX=$((NC_TRUSTED_DOMAIN_IDX + 1))
done
fi
TRUSTED_PROXY=$(ip a show type veth | awk '/scope global/ {print $2}')
OCC config:system:set trusted_proxies 0 --value="$TRUSTED_PROXY"
configure_ssl_proxy
output "🔧 Preparing cron job"
# Setup initial configuration
OCC background:cron
@@ -218,9 +302,10 @@ install() {
# run custom shell script from nc root
# [ -e /var/www/html/nc-dev-autosetup.sh ] && bash /var/www/html/nc-dev-autosetup.sh
echo "🔧 Setting up users and LDAP in the background"
output "🔧 Setting up users and LDAP in the background"
OCC user:setting admin settings email admin@example.net &
INSTANCENAME=$(echo "$VIRTUAL_HOST" | cut -d '.' -f1)
configure_add_user "$INSTANCENAME" &
configure_add_user "${INSTANCENAME:-nextcloud}" &
configure_add_user user1 &
configure_add_user user2 &
configure_add_user user3 &
@@ -231,9 +316,26 @@ install() {
configure_add_user john &
configure_add_user alice &
configure_add_user bob &
configure_ldap &
echo "🚀 Finished setup using $SQL database…"
run_hook_after_install
output "🚀 Finished setup using $SQL database…"
}
run_hook_before_install() {
[ -e /shared/hooks/before-install.sh ] && bash /shared/hooks/before-install.sh
}
run_hook_after_install() {
[ -e /shared/hooks/after-install.sh ] && bash /shared/hooks/after-install.sh
}
run_hook_before_start() {
[ -e /shared/hooks/before-start.sh ] && bash /shared/hooks/before-start.sh
}
run_hook_after_start() {
[ -e /shared/hooks/after-start.sh ] && bash /shared/hooks/after-start.sh
}
add_hosts() {
@@ -243,30 +345,81 @@ add_hosts() {
setup() {
update_permission
configure_xdebug_mode
STATUS=$(OCC status)
if [[ "$STATUS" = *"installed: true"* ]] || [[ ! -f $WEBROOT/config/config.php ]]
then
echo "🚀 Nextcloud already installed ... skipping setup"
output "🚀 Nextcloud already installed ... skipping setup"
# configuration that should be applied on each start
configure_ssl_proxy
else
# We copy the default config to the container
cp /root/default.config.php "$WEBROOT"/config/config.php
chown -R www-data:www-data "$WEBROOT"/config/config.php
mkdir -p "$WEBROOT/apps-extra"
mkdir -p "$WEBROOT/apps-shared"
update_permission
if [ "$NEXTCLOUD_AUTOINSTALL" != "NO" ]
then
add_hosts
install
else
touch "${WEBROOT}/config/CAN_INSTALL"
fi
fi
}
check_source() {
FILE=/var/www/html/status.php
if [ -f "$FILE" ]; then
output "Server source is mounted, continuing"
else
# Only autoinstall when not running in docker-compose
if [ -n "$NEXTCLOUD_AUTOINSTALL_APPS" ] && [ ! -f "$WEBROOT"/config/version.php ]
then
output "======================================================================================="
output " 🚨 Could not find a valid Nextcloud source in $WEBROOT "
output " Double check your REPO_PATH_SERVER and STABLE_ROOT_PATH environment variables in .env "
output "======================================================================================="
exit 1
fi
output "Server source is not present, fetching ${SERVER_BRANCH:-master}"
git clone --depth 1 --branch "${SERVER_BRANCH:-master}" https://github.com/nextcloud/server.git /tmp/server
(cd /tmp/server && git submodule update --init)
output "Cloning additional apps"
git clone --depth 1 --branch "${SERVER_BRANCH:-master}" https://github.com/nextcloud/viewer.git /tmp/server/apps/viewer
# shallow clone of submodules https://stackoverflow.com/questions/2144406/how-to-make-shallow-git-submodules
git config -f .gitmodules submodule.3rdparty.shallow true
(cd /tmp/server && git submodule update --init)
rsync -a --chmod=755 --chown=www-data:www-data /tmp/server/ /var/www/html
chown www-data: /var/www/html
chown www-data: /var/www/html/.htaccess
fi
output "Nextcloud server source is ready"
}
wait_for_other_containers
setup
(
check_source
wait_for_other_containers
setup
run_hook_before_start
rm /etc/apache2/conf-enabled/install.conf
rm -f /var/www/html/installing.html
pkill -USR1 apache2
run_hook_after_start
) &
touch /var/log/cron/nextcloud.log "$WEBROOT"/data/nextcloud.log
touch /var/log/cron/nextcloud.log "$WEBROOT"/data/nextcloud.log /var/log/xdebug.log
chown www-data /var/log/xdebug.log
echo "📰 Watching log file"
tail --follow "$WEBROOT"/data/nextcloud.log /var/log/cron/nextcloud.log &
tail --follow "$WEBROOT"/data/nextcloud.log /var/log/cron/nextcloud.log /var/log/xdebug.log &
echo "⌚ Starting cron"
/usr/sbin/cron -f &
+1
View File
@@ -0,0 +1 @@
FROM collabora/code
+21
View File
@@ -0,0 +1,21 @@
FROM --platform=linux/amd64 ubuntu:22.04
RUN apt update && \
apt install -y git build-essential zip ccache junit4 libkrb5-dev nasm graphviz python3 python3-dev qtbase5-dev libkf5coreaddons-dev libkf5i18n-dev libkf5config-dev libkf5windowsystem-dev libkf5kio-dev autoconf libcups2-dev libfontconfig1-dev gperf default-jdk doxygen libxslt1-dev xsltproc libxml2-utils libxrandr-dev libx11-dev bison flex libgtk-3-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev ant ant-optional libnss3-dev libavahi-client-dev libxt-dev \
sudo git vim wget curl \
dialog \
libpoco-dev python3-polib libcap-dev npm \
libpam-dev wget git build-essential libtool \
libcap2-bin python3-lxml libpng-dev libcppunit-dev \
pkg-config fontconfig \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g sass
RUN adduser --quiet --disabled-password --gecos '' --system --group --home /collabora cool
RUN adduser cool sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
EXPOSE 9980
USER cool
+3
View File
@@ -0,0 +1,3 @@
<?php $CONFIG=[
'memcache.local' => '\\OC\\Memcache\\APCu',
];
-40
View File
@@ -1,40 +0,0 @@
<?php $CONFIG=[
'debug' => true,
'profiler' => true,
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/apps-extra',
'url' => '/apps-extra',
'writable' => false,
),
2 =>
array (
'path' => '/var/www/html/apps-writable',
'url' => '/apps-writable',
'writable' => true,
),
),
// allow local remote senders
'allow_local_remote_servers' => true,
// config for mailhog
'mail_from_address' => 'admin',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'localhost',
'mail_smtphost' => 'mail',
'mail_smtpport' => '1025',
'skeletondirectory' => '/skeleton',
//PLACEHOLDER
];
+69
View File
@@ -0,0 +1,69 @@
<?php
$hostname = gethostname();
$primary = isset($_ENV['PRIMARY']) ? $_ENV['PRIMARY'] : '';
$virtualHost = isset($_ENV['VIRTUAL_HOST']) ? $_ENV['VIRTUAL_HOST'] : '';
$virtualHost = explode(".", $virtualHost);
if (count($virtualHost) > 0) {
$hostname = array_shift($virtualHost);
}
$CONFIG=[
'debug' => true,
'profiler' => true,
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/apps-extra',
'url' => '/apps-extra',
'writable' => false,
),
2 =>
array (
'path' => '/var/www/html/apps-shared',
'url' => '/apps-shared',
'writable' => false,
),
3 =>
array (
'path' => '/var/www/html/apps-writable',
'url' => '/apps-writable',
'writable' => true,
),
),
// allow local remote senders
'allow_local_remote_servers' => true,
// config for mailhog
'mail_from_address' => 'admin',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'localhost',
'mail_smtphost' => 'mail',
'mail_smtpport' => '1025',
'skeletondirectory' => '/skeleton',
'setup_create_db_user' => false,
'debug' => true,
'loglevel' => 2,
// 'htaccess.RewriteBase' => '/',
'log_query' => false,
'query_log_file' => '/shared/log/querylog-' . $hostname .'.log',
'query_log_file_requestid' => 'yes',
'diagnostics.logging' => false,
'diagnostics.logging.threshold' => 0,
'log.condition' => [
'apps' => ['diagnostics', 'admin_audit'],
],
];
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+15 -7
View File
@@ -1,14 +1,22 @@
# off develop debug gcstats profile trace
xdebug.mode = debug
; off develop debug gcstats profile trace
xdebug.mode = off
xdebug.idekey=PHPSTORM
xdebug.trace_output_name=trace.%R.%u
xdebug.profiler_output_name=profile.%R.%u
xdebug.output_dir=/shared
xdebug.output_dir=/shared/xdebug
# Try to discover the client host, otherwise fall back to the docker host
xdebug.log = /var/log/xdebug.log
xdebug.log_level = 1
; Try to discover the client host, otherwise fall back to the docker host
xdebug.discover_client_host=true
xdebug.client_host=host.docker.internal
# set this to autostart debugging e.g. if you cannot specify the trigger in the request
# https://xdebug.org/docs/all_settings#start_with_request
# xdebug.start_with_request = yes
; When you cannot specify a trigger, use "xdebug.start_with_request = yes" to autostart debugging for all requests
; https://xdebug.org/docs/all_settings#start_with_request
xdebug.start_with_request = trigger
; Set xdebug.mode trace to use this
; More details at https://derickrethans.nl/flamboyant-flamegraphs.html
xdebug.trace_format=3
xdebug.trace_output_name=xdebug.%R.%u
+52
View File
@@ -0,0 +1,52 @@
<?php
// FIXME: Move everything except the last part to the containers
// set the hostname to the VIRTUAL_HOST set for the docker container, otherwise fallback to the docker hostname
$hostname = gethostname();
$primary = isset($_ENV['PRIMARY']) ? $_ENV['PRIMARY'] : '';
$virtualHost = isset($_ENV['VIRTUAL_HOST']) ? $_ENV['VIRTUAL_HOST'] : '';
$virtualHost = explode(".", $virtualHost);
if (count($virtualHost) > 0) {
$hostname = array_shift($virtualHost);
}
$CONFIG = [];
if ($primary === 'minio') {
$CONFIG += [
'objectstore' =>
array (
'class' => 'OC\\Files\\ObjectStore\\S3',
'arguments' =>
array (
'bucket' => 'nc-' . $hostname,
'key' => 'nextcloud',
'secret' => 'nextcloud',
'hostname' => 'minio',
'port' => '9000',
'use_ssl' => false,
'use_path_style' => true,
'autocreate' => true,
'verify_bucket_exists' => true,
),
)
];
}
if ($primary === 'minio-multibucket') {
$CONFIG += [
'objectstore_multibucket' => array(
'class' => 'OC\\Files\\ObjectStore\\S3',
'arguments' => array(
// optional, defaults to 64
'num_buckets' => 64,
// n integer in the range from 0 to (num_buckets-1) will be appended
'bucket' => 'nc-' . $hostname,
'key' => 'nextcloud',
'secret' => 'nextcloud',
'hostname' => 'minio',
'port' => '9000',
'use_ssl' => false,
'use_path_style' => true,
),
),
];
}
+75
View File
@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="1" />
<meta charset="utf-8">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
margin: auto;
max-width: 700px;
}
.lds-ellipsis {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-ellipsis div {
position: absolute;
top: 33px;
width: 13px;
height: 13px;
border-radius: 50%;
background: #000;
animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
left: 8px;
animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
left: 8px;
animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
left: 32px;
animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
left: 56px;
animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes lds-ellipsis3 {
0% {
transform: scale(1);
}
100% {
transform: scale(0);
}
}
@keyframes lds-ellipsis2 {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(24px, 0);
}
}
</style>
</head>
<body>
<h1>Installing container</h1>
<p>Please wait until the server is ready. This page will redirect you to the login once done.</p>
<h2>Log:</h2>
<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>
<pre>
@@ -1,3 +1,3 @@
FROM elasticsearch:7.17.3
FROM elasticsearch:7.17.14
RUN bin/elasticsearch-plugin install --batch ingest-attachment
@@ -3,4 +3,4 @@ FROM osixia/openldap:latest
ENV LDAP_DOMAIN="planetexpress.com"
ENV LDAP_BASE_DN="dc=planetexpress,dc=com"
COPY ./configs/ldap /container/service/slapd/assets/config/bootstrap/ldif/custom
COPY ./ldap/seed /container/service/slapd/assets/config/bootstrap/ldif/custom
@@ -1,11 +1,11 @@
FROM ubuntu:20.04
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV DBPASSWD=abrakadabra
ADD https://github.com/nextcloud/lookup-server/archive/master.zip /root/lookup-server.zip
COPY configs/lookupserver/entrypoint.sh /usr/sbin/
COPY lookupserver/entrypoint.sh /usr/sbin/
RUN echo 'mariadb-server mysql-server/root_password password $DBPASSWD' | debconf-set-selections && \
echo 'mariadb-server mysql-server/root_password_again password $DBPASSWD' | debconf-set-selections && \
@@ -30,8 +30,8 @@ RUN cd /root/ && \
rm lookup-server.zip && \
rm -Rf lookup-server-master
COPY configs/lookupserver/config.php /var/www/html/config
COPY configs/lookupserver/lookup.conf /etc/apache2/conf-available/
COPY lookupserver/config.php /var/www/html/config
COPY lookupserver/lookup.conf /etc/apache2/conf-available/
RUN a2enmod rewrite && \
a2enconf lookup && \
+31
View File
@@ -0,0 +1,31 @@
[primary]
type=server
address=database-mariadb-primary
port=3306
protocol=MariaDBBackend
[replica1]
type=server
address=database-mariadb-replica
port=3306
protocol=MariaDBBackend
[MariaDB-Monitor]
type=monitor
module=mariadbmon
servers=primary,replica1
user=root
password=nextcloud
[RW-Split-Router]
type=service
router=readwritesplit
servers=primary,replica1
user=root
password=nextcloud
[RW-Split-Listener]
type=listener
service=RW-Split-Router
protocol=MariaDBClient
port=3306
+2
View File
@@ -0,0 +1,2 @@
FROM nginxproxy/nginx-proxy:latest
ADD nginx/my_proxy.conf /etc/nginx/conf.d
+8
View File
@@ -0,0 +1,8 @@
server_tokens off;
client_max_body_size 1024m;
proxy_read_timeout 3600;
proxy_send_timeout 3600;
proxy_connect_timeout 3600;
proxy_set_header X-Forwarded-Proto $scheme;
+100
View File
@@ -0,0 +1,100 @@
FROM php:8.2-apache
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions
RUN install-php-extensions \
apcu \
bcmath \
blackfire \
exif \
gd \
gmp \
imagick \
intl \
ldap \
memcached \
oci8 \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
smbclient \
sysvsem \
xdebug-^3.2 \
zip \
@composer
# dev tools separate install so we quickly change without rebuilding all php extensions
RUN apt update && apt-get install -y --no-install-recommends \
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep rsync mariadb-client \
&& rm -rf /var/lib/apt/lists/*
# Install PHPUnit
RUN wget -O /usr/local/bin/phpunit8 https://phar.phpunit.de/phpunit-8.phar \
&& chmod +x /usr/local/bin/phpunit8 \
&& wget -O /usr/local/bin/phpunit9 https://phar.phpunit.de/phpunit-9.phar \
&& chmod +x /usr/local/bin/phpunit9
# Install NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& export NVM_DIR="/root/.nvm" \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 14 && nvm install 16 && nvm install 20 \
&& nvm alias default 20
RUN wget https://gist.githubusercontent.com/nickvergessen/e21ee0a09ee3b3f7fd1b04c83dd3e114/raw/83142be1e50c23e8de1bd7aae88a95e5d6ae1ce2/nextcloud_log.json && lnav -i nextcloud_log.json && rm nextcloud_log.json
RUN { \
echo '[global]'; \
echo 'client min protocol = SMB2'; \
echo 'client max protocol = SMB3'; \
echo 'hide dot files = no'; \
} > /etc/samba/smb.conf
RUN mkdir --parent /var/log/cron
ADD configs/cron.conf /etc/nc-cron.conf
RUN crontab /etc/nc-cron.conf
ADD configs/php/nextcloud.ini /usr/local/etc/php/conf.d/nextcloud.ini
ADD configs/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
# Setup blackfire probe
RUN wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add - \
&& echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list \
&& apt-get update \
&& (apt-get install -y --no-install-recommends blackfire \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-blackfire.ini \
&& printf "\n\nblackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini && \
mv $PHP_INI_DIR/conf.d/zz-blackfire.ini $PHP_INI_DIR/conf.d/zz-blackfire.ini.disabled) \
|| echo "Skipped blackfire as the installation failed" \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
# mod_rewrite
RUN a2enmod rewrite headers
# increase limit request body
RUN echo "LimitRequestBody 0" > /etc/apache2/conf-available/limit-request-body.conf && a2enconf limit-request-body
VOLUME /var/www/html
VOLUME /var/www/html/apps-writable
VOLUME /var/www/html/config
VOLUME /var/www/html/data
ENV SQL sqlite
ENV NEXTCLOUD_AUTOINSTALL YES
ENV WITH_REDIS NO
ENV WEBROOT /var/www/html
WORKDIR /var/www/html
ENTRYPOINT ["/usr/local/bin/bootstrap.sh"]
CMD ["apache2-foreground"]
ADD data/installing.html /root/installing.html
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/default.config.php configs/storage.config.php configs/redis.config.php configs/apcu.config.php /root/
ADD bin/bootstrap.sh bin/occ /usr/local/bin/
+101
View File
@@ -0,0 +1,101 @@
FROM php:8.3-apache
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions
RUN install-php-extensions \
apcu \
bcmath \
blackfire \
exif \
gd \
gmp \
# waiting for https://github.com/mlocati/docker-php-extension-installer/pull/811
# imagick \
intl \
ldap \
memcached \
oci8 \
opcache \
pcntl \
pdo_mysql \
pdo_pgsql \
redis \
smbclient \
sysvsem \
# xdebug \
zip \
@composer
# dev tools separate install so we quickly change without rebuilding all php extensions
RUN apt update && apt-get install -y --no-install-recommends \
git curl vim sudo cron smbclient iproute2 lnav wget iputils-ping gnupg2 jq ripgrep rsync mariadb-client \
&& rm -rf /var/lib/apt/lists/*
# Install PHPUnit
RUN wget -O /usr/local/bin/phpunit8 https://phar.phpunit.de/phpunit-8.phar \
&& chmod +x /usr/local/bin/phpunit8 \
&& wget -O /usr/local/bin/phpunit9 https://phar.phpunit.de/phpunit-9.phar \
&& chmod +x /usr/local/bin/phpunit9
# Install NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& export NVM_DIR="/root/.nvm" \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 14 && nvm install 16 && nvm install 20 \
&& nvm alias default 20
RUN wget https://gist.githubusercontent.com/nickvergessen/e21ee0a09ee3b3f7fd1b04c83dd3e114/raw/83142be1e50c23e8de1bd7aae88a95e5d6ae1ce2/nextcloud_log.json && lnav -i nextcloud_log.json && rm nextcloud_log.json
RUN { \
echo '[global]'; \
echo 'client min protocol = SMB2'; \
echo 'client max protocol = SMB3'; \
echo 'hide dot files = no'; \
} > /etc/samba/smb.conf
RUN mkdir --parent /var/log/cron
ADD configs/cron.conf /etc/nc-cron.conf
RUN crontab /etc/nc-cron.conf
ADD configs/php/nextcloud.ini /usr/local/etc/php/conf.d/nextcloud.ini
ADD configs/php/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
# Setup blackfire probe
RUN wget -q -O - https://packages.blackfire.io/gpg.key | sudo apt-key add - \
&& echo "deb http://packages.blackfire.io/debian any main" | sudo tee /etc/apt/sources.list.d/blackfire.list \
&& apt-get update \
&& (apt-get install -y --no-install-recommends blackfire \
&& rm -f /usr/local/etc/php/conf.d/docker-php-ext-blackfire.ini \
&& printf "\n\nblackfire.agent_socket=tcp://blackfire:8307\n" >> $PHP_INI_DIR/conf.d/zz-blackfire.ini && \
mv $PHP_INI_DIR/conf.d/zz-blackfire.ini $PHP_INI_DIR/conf.d/zz-blackfire.ini.disabled) \
|| echo "Skipped blackfire as the installation failed" \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
# mod_rewrite
RUN a2enmod rewrite headers
# increase limit request body
RUN echo "LimitRequestBody 0" > /etc/apache2/conf-available/limit-request-body.conf && a2enconf limit-request-body
VOLUME /var/www/html
VOLUME /var/www/html/apps-writable
VOLUME /var/www/html/config
VOLUME /var/www/html/data
ENV SQL sqlite
ENV NEXTCLOUD_AUTOINSTALL YES
ENV WITH_REDIS NO
ENV WEBROOT /var/www/html
WORKDIR /var/www/html
ENTRYPOINT ["/usr/local/bin/bootstrap.sh"]
CMD ["apache2-foreground"]
ADD data/installing.html /root/installing.html
ADD configs/autoconfig_mysql.php configs/autoconfig_pgsql.php configs/autoconfig_oci.php configs/default.config.php configs/storage.config.php configs/redis.config.php configs/apcu.config.php /root/
ADD bin/bootstrap.sh bin/occ /usr/local/bin/
+7
View File
@@ -0,0 +1,7 @@
FROM alpine
RUN wget https://github.com/nextcloud/notify_push/releases/download/v0.6.3/notify_push-`uname -m`-unknown-linux-musl -O /notify_push && chmod +x /notify_push && /notify_push --version
EXPOSE 7867
CMD ["/notify_push"]
+49
View File
@@ -0,0 +1,49 @@
# Taken from https://github.com/strukturag/nextcloud-spreed-signaling/blob/54c1af7f4f1b598a9f2c1ae37b76b37e9dda3ee8/docker/janus/Dockerfile
# Modified from https://gitlab.com/powerpaul17/nc_talk_backend/-/blob/dcbb918d8716dad1eb72a889d1e6aa1e3a543641/docker/janus/Dockerfile
FROM alpine:3.18
RUN apk add --no-cache curl autoconf automake libtool pkgconf build-base \
glib-dev libconfig-dev libnice-dev jansson-dev openssl-dev zlib libsrtp-dev \
gengetopt libwebsockets-dev git curl-dev libogg-dev
# usrsctp
# 08 Oct 2021
ARG USRSCTP_VERSION=7c31bd35c79ba67084ce029511193a19ceb97447
RUN cd /tmp && \
git clone https://github.com/sctplab/usrsctp && \
cd usrsctp && \
git checkout $USRSCTP_VERSION && \
./bootstrap && \
./configure --prefix=/usr && \
make && make install
# libsrtp
ARG LIBSRTP_VERSION=2.4.2
RUN cd /tmp && \
wget https://github.com/cisco/libsrtp/archive/v$LIBSRTP_VERSION.tar.gz && \
tar xfv v$LIBSRTP_VERSION.tar.gz && \
cd libsrtp-$LIBSRTP_VERSION && \
./configure --prefix=/usr --enable-openssl && \
make shared_library && \
make install && \
rm -fr /libsrtp-$LIBSRTP_VERSION && \
rm -f /v$LIBSRTP_VERSION.tar.gz
# JANUS
ARG JANUS_VERSION=0.11.8
RUN mkdir -p /usr/src/janus && \
cd /usr/src/janus && \
curl -L https://github.com/meetecho/janus-gateway/archive/v$JANUS_VERSION.tar.gz | tar -xz && \
cd /usr/src/janus/janus-gateway-$JANUS_VERSION && \
./autogen.sh && \
./configure --disable-rabbitmq --disable-mqtt --disable-boringssl && \
make && \
make install && \
make configs
WORKDIR /usr/src/janus/janus-gateway-$JANUS_VERSION
CMD [ "janus", "--full-trickle" ]
+77
View File
@@ -0,0 +1,77 @@
# Getting started
## Tutorial
You can find a [step by step tutorial on how to use this setup](https://cloud.nextcloud.com/s/iyNGp8ryWxc7Efa?path=%2F1%20Setting%20up%20a%20development%20environment) in the [Nextcloud Developer Portal](https://nextcloud.com/developer/). It will guide you through the setup and show you how to use it for app development.
There are two ways of using this setup. **A persistent setup is the most common one** where you have a local git clone of all required repositories. The other one is a standalone setup that can be used to quickly run parts of the Nextcloud ecosystem source code without having to clone everything.
## Persistent development setup
!!! note
This is the recommended way to run the setup for development. You will have a local clone of all required source code.
To start the setup run the following commands to clone the repository and bootstrap the setup. This will prepare your setp and clone the Nextcloud server repository and required apps into the `workspace` folder.
```bash
git clone https://github.com/juliushaertl/nextcloud-docker-dev
cd nextcloud-docker-dev
./bootstrap.sh
```
This may take some time depending on your internet connection speed.
Once done you can start the Nextcloud container using:
```bash
docker-compose up nextcloud
```
You can also start it in the background using `docker-compose up -d nextcloud`.
You can then access your Nextcloud instance at [http://nextcloud.local](http://nextcloud.local). The default username is `admin` and the password is `admin`. [Other users can be found in the documentation](https://juliushaertl.github.io/nextcloud-docker-dev/basics/overview/#default-users).
!!! warning
Note that for performance reasons the server repository might have been cloned with `--depth=1` by default. To get the full history it is highly recommended to run:
```bash
cd workspace/server
git fetch --unshallow
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin
```
## Standalone containers
!!! note
This is a very simple way but doesn't cover all features. If you are looking for a fully featured setup you may skip to the next section
There is a standalone version of the Nextcloud containers available that can be used to run Nextcloud without the other services. This is useful if you are just wanting to get started with app development against a specific server version, or to just have a quick way to develop, test or debug.
These containers support automatic fetching of the server source code and use SQLite as the database. The server source code is fetched from the official Nextcloud server repository and the version can be specified using the `NEXTCLOUD_VERSION` environment variable. The default version is `master`.
Running the containers does not need this repository to be cloned.
Example for running a Nextcloud server from the master branch of server:
```bash
docker run --rm -p 8080:80 ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
For app development you can mount your app directly into the container:
```bash
docker run --rm -p 8080:80 -v ~/path/to/appid:/var/www/html/apps-extra/appid ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
The `SERVER_BRANCH` environment variable can be used to run different versions of Nextcloud by specificing either a server branch or git tag.
```bash
docker run --rm -p 8080:80 -e SERVER_BRANCH=v24.0.1 ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
You can also mount your local server source code into the container to run a local version of Nextcloud:
```bash
docker run --rm -p 8080:80 -e SERVER_BRANCH=v24.0.1 -v /tmp/server:/var/www/html ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
+44
View File
@@ -0,0 +1,44 @@
# Hostnames
## Using /etc/hosts
In order to use the hostnames provided by the environment you need to add them to the /etc/hosts file (which is the simplest method).
You can do this by running the following command, which will automatically update entires:
```bash
./scripts/update-hosts.sh
```
## dnsmasq to resolve wildcard domains
Instead of adding the individual container domains to `/etc/hosts` a local dns server like dnsmasq can be used to resolve any domain ending with the configured `DOMAIN_SUFFIX` in `.env` to localhost.
For dnsmasq adding the following configuration would be sufficient for `DOMAIN_SUFFIX=.local`:
```
address=/.local/127.0.0.1
```
To run dnsmasq in a container, you can use the following example:
```
docker run --rm -it \
-e DMQ_DHCP_RANGES=" " \
-e DMQ_DHCP_DNS=" " \
-e DMQ_DHCP_GATEWAY=" " \
-e DMQ_DNS_ADDRESS="address=/.local/127.0.0.1" \
-p 53:53 \
-p 53:53/udp \
drpsychick/dnsmasq:latest
```
## Use DNS Service Discovery on MacOS
You can also use the `dns-sd` tool on MacOS to advertise the container domains on the network. This is especially useful if you try to connect from an iPhone or iPad, since those devices do not allow to edit the `/etc/hosts` file. Use the tool like this:
```
dns-sd -P nextcloud _http._tcp local 80 nextcloud.local 192.168.0.10
```
Be aware that since this is advertised in the local network, it is not recommended to use it in a network where multiple instances could be running. In this case you might want to change the `DOMAIN_SUFFIX` in `.env` to prevent any collision.
+47
View File
@@ -0,0 +1,47 @@
# Overview
## Nextcloud containers
There are multiple containers that can be started for Nextcloud. The main `nextcloud` container is targetting the main workspace directly (usually for running the master/main branch of Nextcloud server and apps) of the latest development version. In addition there are stable containers for running the stable major version branches in parallel.
Additional services like databases, redis cache, minio object storage and others are provided as separate containers and are shared between the different Nextcloud containers. They still isolate data of the individual Nextcloud containers from each other.
For any HTTP services a nginx proxy container is used to route requests to the correct container. This proxy is automatically started.
## Default users
The following user accounts are available by default:
- `admin` / `admin`
- `alice` / `alice`
- `bob` / `bob`
- `user1` / `user1`
- `user2` / `user2`
- `user3` / `user3`
- `user4` / `user4`
## App directories
The Nextcloud containers are configured to use multiple app directories.
- Use `apps/` for required apps (like `viewer`)
- Use `apps-extra/` for apps that support only one specific nextcloud version (like `talk`)
- Use `apps-shared/` for apps that support multiple nextcloud versions as this directory is shared between all containers
## Cronjobs
The cronjobs are configured to run every 5 minutes in the individual containers.
For testing you can also run them manually:
```bash
docker-compose exec nextcloud php cron.php
```
### occ
Run inside of the Nextcloud container:
```
set XDEBUG_CONFIG=idekey=PHPSTORM
sudo -E -u www-data php -dxdebug.remote_host=192.168.21.1 occ
+23
View File
@@ -0,0 +1,23 @@
# HTTPS
A nginx proxy container is used to route requests to the correct container. This proxy is automatically started. It can be configured to use HTTPS by setting the `PROTOCOL` environment variable to `https` in the `.env` file. The container will pick up SSL certificates automatically from `data/ssl/` named by the domain name.
# Use mkcert
mkcert is a simple tool for making locally-trusted development certificates. It requires no configuration. This would be the recommended way to generate certificates for local development.
* Install [mkcert](https://github.com/FiloSottile/mkcert)
* Go to `data/ssl`
* `mkcert -cert-file nextcloud.local.crt -key-file nextcloud.local.key nextcloud.local`
* Add `PROTOCOL=https` to your `.env` file
* `docker-compose restart proxy`
* There is also a script to generate/update all certs: `./scripts/update-certs`
## Use self-signed certificates
You can generate self-signed certificates using:
```
cd data/ssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nextcloud.local.key -out nextcloud.local.crt
```
+37
View File
@@ -0,0 +1,37 @@
# Stable Nextcloud versions
As described in the [overview](overview.md) there are multiple Nextcloud containers available. The main `nextcloud` container is targetting the main workspace directly (usually for running the master/main branch of Nextcloud server and apps) of the latest development version. In addition there are stable containers for running the stable major version branches in parallel.
## Prepare your git checkouts for running a stable version
In order to run a stable version you need to have the corresponding git checkouts available. Using [git worktree](https://blog.juliushaertl.de/index.php/2018/01/24/how-to-checkout-multiple-git-branches-at-the-same-time/) makes it easy to have different branches checked out in parallel in separate directories and is the recommended way to work with stable branches in parallel.
Assuimg you have already cloned the repository into `~/nextcloud-docker-dev/workspace/server` you can run the following commands to create a new worktree for the stable28 branch:
```bash
# create a new worktree for the stable28 branch
cd ~/nextcloud-docker-dev/workspace/server
git worktree add ../stable28 stable28
cd ~/nextcloud-docker-dev/workspace/stable28
# make sure submodules are installed in the stable server root directory
git submodule update --init
```
### Add worktree for additional apps
This will be required for every app that you need on the stable branches, so run this for viewer but also for any other app you need.
```bash
cd ~/nextcloud-docker-dev/workspace/server/apps/viewer
git worktree add ../../../stable28/apps/viewer stable28
```
## Start the stable28 container
```bash
docker-compose up -d stable28
```
## Apps without stable branches
Some apps do not have stable branches or cover multiple Nextcloud version. You can use the `ADDITIONAL_APPS_PATH` variable in your `.env` file to add add a cloned app to all Nextcloud containers. By default this is set to `./data/apps-extra`
+33
View File
@@ -0,0 +1,33 @@
# Standalone containers
There is a standalone version of the Nextcloud containers available that can be used to run Nextcloud without the other services. This is useful if you are just wanting to get started with app development against a specific server version, or to just have a quick way to develop, test or debug.
These containers support automatic fetching of the server source code and use SQLite as the database. The server source code is fetched from the official Nextcloud server repository and the version can be specified using the `NEXTCLOUD_VERSION` environment variable. The default version is `master`.
Running the containers does not need this repository to be cloned.
Example for running a Nextcloud server from the master branch of server:
```bash
docker run --rm -p 8080:80 ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
For app development you can mount your app directly into the container:
```bash
docker run --rm -p 8080:80 \
-v ~/path/to/appid:/var/www/html/apps-extra/appid \
ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
The `SERVER_BRANCH` environment variable can be used to run different versions of Nextcloud by specificing either a server branch or git tag.
```bash
docker run --rm -p 8080:80 -e SERVER_BRANCH=v24.0.1 ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
You can also mount your local server source code into the container to run a local version of Nextcloud:
```bash
docker run --rm -p 8080:80 -e SERVER_BRANCH=v24.0.1 -v /tmp/server:/var/www/html ghcr.io/juliushaertl/nextcloud-dev-php80:latest
```
+13
View File
@@ -0,0 +1,13 @@
# Troubleshooting
- If your setup isn't working and you can not figure out the reason why, running
`docker-compose down -v` will remove the relevant containers and volumes,
allowing you to run `docker-compose up` again from a clean slate.
- You can run `./bootstrap.sh` again to check the setup and detected paths for your source code destination
- In extreme cases, clean everything: `docker system prune --all`
- If you start your stable containers (not the master) and it wants to install Nextcloud even if it is not the first start, you may have removed the configuration with the last `docker-compose down` command. Try to use `docker-compose stop` instead or give the stable setup named values yourself.
## Logs
- You can use `docker-compose logs -f` to follow the logs of all containers
- You can use `docker-compose logs -f nextcloud` to follow the logs of the Nextcloud container
+22
View File
@@ -0,0 +1,22 @@
# Update
## Updating the development environment
- `git pull` to get the latest changes
- `make pull-installed` to pull the latest versions of all images that are already downloaded
- `make pull-all` to pull the latest versions of all images
- After pulling make sure to either recreate the containers manually or recreate the full development environment through `docker compose down -v` and `docker compose up -d proxy nextcloud ...` for the containers in use.
## Updating the Nextcloud server
As Nextcloud containers are bound to a server major version and the code is updated through manual git pull, you only need to call occ update on demand
```bash
docker-compose exec nextcloud occ upgrade
```
### Major version bump
In case Nextcloud server bumps the major version, you will need to pull all repositories again to the latest state to get the compatibility changes.
You might want to take the opportunity to then setup the previous version as a new stable version setup. See [stable versions](stable-versions.md) for more information.
-8
View File
@@ -1,8 +0,0 @@
# Antivirus
```bash
docker compose up -d proxy nextcloud av
```
The clanav antivirus will then be exposed as a deamon with host `clam` and
port 3310.
-10
View File
@@ -1,10 +0,0 @@
# 🚀 Blackfire
Blackfire needs to use a hostname/ip that is resolvable from within the blackfire container. Their free version is [limited to local profiling](https://support.blackfire.io/troubleshooting/hack-edition-users-cannot-profile-non-local-http-applications) so we need to browse Nextcloud though its local docker IP or add the hostname to `/etc/hosts`.
## Using with curl
```
alias blackfire='docker compose exec -e BLACKFIRE_CLIENT_ID=$BLACKFIRE_CLIENT_ID -e BLACKFIRE_CLIENT_TOKEN=$BLACKFIRE_CLIENT_TOKEN blackfire blackfire'
blackfire curl http://192.168.21.8/
```
-9
View File
@@ -1,9 +0,0 @@
# Collabora
- Make sure to have the collabora hostname setup in your /etc/hosts file: `127.0.0.1 collabora.local`
- Automatically enable for one of your containers (e.g. the main nextcloud one):
- Run `./scripts/enable-collabora nextcloud`
- Manual setup
- Start the Collabora Online server in addition to your other containers `docker compose up -d collabora`
- Make sure you have the richdocuments app cloned to your apps-extra directory and built the frontend code of the app with `npm ci && npm run build`
- Enable the app and configure `collabora.local` in the Collabora settings inside of Nextcloud
-19
View File
@@ -1,19 +0,0 @@
# Full Text Search
To use Full Text Search, follow these commands :
```bash
docker compose down -v
docker compose up nextcloud proxy elasticsearch elasticsearch-ui
```
You can add another services from `docker-compose.yaml` if you want.
- Address for configuring in Nextcloud: `http://elastic:elastic@elasticsearch:9200`
- Adress to access elastic search from outside: `http://elastic:elastic@elasticsearch.local`
- Address for accessing the ui: http://elasticsearch-ui.local/
```bash
sudo sysctl -w vm.max_map_count=262144
```
-7
View File
@@ -1,7 +0,0 @@
## Global scale
```bash
docker compose up -d proxy portal gs1 gs2 lookup database-mysql
```
Users are named the same as the instance name, e.g. gs1, gs2
-7
View File
@@ -1,7 +0,0 @@
# Keycloak
- Keycloak is using ldap as a user backend (make sure the ldap container is also running)
- `occ user_oidc:provider Keycloak -c nextcloud -s 09e3c268-d8bc-42f1-b7c6-74d307ef5fde -d https://keycloak.local.dev.bitgrid.net/auth/realms/Example/.well-known/openid-configuration`
- https://keycloak.local.dev.bitgrid.net/auth/realms/Example/.well-known/openid-configuration
- nextcloud
- 09e3c268-d8bc-42f1-b7c6-74d307ef5fde
-29
View File
@@ -1,29 +0,0 @@
# 👥 LDAP
The LDAP sample data is based on https://github.com/rroemhild/docker-test-openldap and extended with randomly generated users/groups. For details see [data/ldap-generator/](https://github.com/juliushaertl/nextcloud-docker-dev/tree/master/data/ldap-generator). LDAP will be configured automatically if the ldap container is available during installation.
|uid (login) | password |
|---|---|
| leela | leela |
| fry | fry |
| zoidberg | zoidberg |
| hermes | hermes |
| professor | professor |
| ... | ... |
To add LDAP in your dev environment use these commands :
```bash
docker compose down -v
docker compose up nextcloud proxy ldap
```
You can add another services from `docker-compose.yaml` if you want.
Useful commands to know all LDAP's objects :
```
docker compose exec ldap ldapsearch -H 'ldap://localhost' -D "cn=admin,dc=planetexpress,dc=com" -w admin -b "dc=planetexpress,dc=com" "(&(objectclass=inetOrgPerson)(description=*use*))"
```
-5
View File
@@ -1,5 +0,0 @@
# ✉ Mail
Sending/receiving mails can be tested with [mailhog](https://github.com/mailhog/MailHog) which is available on ports 1025 (SMTP).
To use the webui, add `127.0.0.1 mail.local` to your `/etc/hosts` and open [mail.local](http://mail.local).
-25
View File
@@ -1,25 +0,0 @@
# Mysql
This is information about the mysql service :
- user root : `root`
- password root : `nextcloud`
- user : `nextcloud`
- password : `nextcloud`
- database name : `nextcloud`
## How to connect on the mysql service ?
You can run this command to be in the mysql prompt as no root :
```bash
docker compose exec database-mysql mysql -unextcloud -pnextcloud
```
If you want to be as root, use this command :
```bash
docker compose exec database-mysql mysql -uroot -pnextcloud
```
-7
View File
@@ -1,7 +0,0 @@
# Object storage
Primary object storage can be enabled by setting the `PRIMARY=minio` environment variable either in your .env file or in docker-compose.yml for individual containers.
```bash
docker composer up proxy nextcloud minio
```
-9
View File
@@ -1,9 +0,0 @@
# ONLYOFFICE
- Make sure to have the collabora hostname setup in your /etc/hosts file: `127.0.0.1 onlyoffice.local`
- Automatically enable for one of your containers (e.g. the main nextcloud one):
- Run `./scripts/enable-onlyoffice nextcloud`
- Manual setup
- Start the ONLYOFFICE server in addition to your other containers `docker compose up -d onlyoffice`
- Clone https://github.com/ONLYOFFICE/onlyoffice-nextcloud into your apps directory
- Enable the app and configure `onlyoffice.local` in the ONLYOFFICE settings inside of Nextcloud
-65
View File
@@ -1,65 +0,0 @@
# SAML
```bash
docker compose up -d proxy nextcloud saml
```
- uid mapping: `urn:oid:0.9.2342.19200300.100.1.1`
- idp entity id: `https://sso.local.dev.bitgrid.net/simplesaml/saml2/idp/metadata.php`
- single sign on service url: `https://sso.local.dev.bitgrid.net/simplesaml/saml2/idp/SSOService.php`
- single log out service url: `https://sso.local.dev.bitgrid.net/simplesaml/saml2/idp/SingleLogoutService.php`
- use certificate from docker/configs/var-simplesamlphp/cert/example.org.crt
```
-----BEGIN CERTIFICATE-----
MIICrDCCAhWgAwIBAgIUNtfnC2jE/rLdxHCs2th3WaYLryAwDQYJKoZIhvcNAQEL
BQAwaDELMAkGA1UEBhMCREUxCzAJBgNVBAgMAkJZMRIwEAYDVQQHDAlXdWVyemJ1
cmcxFDASBgNVBAoMC0V4YW1wbGUgb3JnMSIwIAYDVQQDDBlzc28ubG9jYWwuZGV2
LmJpdGdyaWQubmV0MB4XDTE5MDcwMzE0MjkzOFoXDTI5MDcwMjE0MjkzOFowaDEL
MAkGA1UEBhMCREUxCzAJBgNVBAgMAkJZMRIwEAYDVQQHDAlXdWVyemJ1cmcxFDAS
BgNVBAoMC0V4YW1wbGUgb3JnMSIwIAYDVQQDDBlzc28ubG9jYWwuZGV2LmJpdGdy
aWQubmV0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDHPZwU+dAc76yB6bOq
0AkP1y9g7aAi1vRtJ9GD4AEAsA3zjW1P60BYs92mvZwNWK6NxlJYw51xPak9QMk5
qRHaTdBkmq0a2mWYqh1AZNNgCII6/VnLcbEIgyoXB0CCfY+2vaavAmFsRwOMdeR9
HmtQQPlbTA4m5Y8jWGVs1qPtDQIDAQABo1MwUTAdBgNVHQ4EFgQUeZSoGKeN5uu5
K+n98o3wcitFYJ0wHwYDVR0jBBgwFoAUeZSoGKeN5uu5K+n98o3wcitFYJ0wDwYD
VR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOBgQA25X/Ke+5dw7up8gcF2BNQ
ggBcJs+SVKBmPwRcPQ8plgX4D/K8JJNT13HNlxTGDmb9elXEkzSjdJ+6Oa8n3IMe
vUUejXDXUBvlmmm+ImJVwwCn27cSfIYb/RoZPeKtned4SCzpbEO9H/75z3XSqAZS
Z1tiHzYOVtEs4UNGOtz1Jg==
-----END CERTIFICATE-----
```
- cn `urn:oid:2.5.4.3`
- email `urn:oid:0.9.2342.19200300.100.1.3`
## Environment based SSO
A simple approach to test environment based SSO with the user_saml app is to use apache basic auth with the following configuration:
```xml
<Location /login>
AuthType Basic
AuthName "SAML"
AuthUserFile /var/www/html/.htpasswd
Require valid-user
</Location>
<Location /index.php/login>
AuthType Basic
AuthName "SAML"
AuthUserFile /var/www/html/.htpasswd
Require valid-user
</Location>
<Location /index.php/apps/user_saml/saml/login>
AuthType Basic
AuthName "SAML"
AuthUserFile /var/www/html/.htpasswd
Require valid-user
</Location>
<Location /apps/user_saml/saml/login>
AuthType Basic
AuthName "SAML"
AuthUserFile /var/www/html/.htpasswd
Require valid-user
</Location>
```
-52
View File
@@ -1,52 +0,0 @@
# SSL
## What is SSL ?
<!-- ## How to use this container with others ?-->
<!-- This section describes if there are particularities or others with this container. -->
## 🔒 Reverse Proxy
Used for SSL termination. To setup SSL support provide a proper DOMAIN_SUFFIX environment variable and put the certificates to ./data/ssl/ named by the domain name.
You might need to add the domains to your `/etc/hosts` file:
```
127.0.0.1 nextcloud.local
127.0.0.1 collabora.local
```
This is assuming you have set `DOMAIN_SUFFIX=.local`
You can generate it through:
```bash
awk -v D=.local '/- [A-z0-9]+\${DOMAIN_SUFFIX}/ {sub("\\$\{DOMAIN_SUFFIX\}", D " 127.0.0.1", $2); print $2}' docker-compose.yml
```
You can generate selfsigned certificates using:
```bash
cd data/ssl
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout nextcloud.local.key -out nextcloud.local.crt
```
### dnsmasq to resolve wildcard domains
Instead of adding the individual container domains to `/etc/hosts` a local dns server like dnsmasq can be used to resolve any domain ending with the configured DOMAIN_SUFFIX in `.env` to localhost.
For dnsmasq adding the following configuration would be sufficient for `DOMAIN_SUFFIX=.local`:
```
address=/.local/127.0.0.1
```
### Use valid certificates trusted by your system
* Install mkcert https://github.com/FiloSottile/mkcert
* Go to `data/ssl`
* `mkcert nextcloud.local`
* `mv nextcloud.local-key.pem nextcloud.local.key`
* `mv nextcloud.local.pem nextcloud.local.crt`
* `docker compose restart proxy`
+13
View File
@@ -0,0 +1,13 @@
# Build containers
This is usually only required if you want to test changes to the containers or if you want to build the containers yourself instead of using the prebuilt images.
You can build the containers manually for testing local changes by calling make with the Dockerfile as the target:
```bash
make docker/php82/Dockerfile
make docker/Dockerfile.php81
make docker/Dockerfile.php80
```
Afterwards you can recrate the container with `docker-compose up -d --force-recreate nextcloud` to run the new image or use `docker-compose down -v` before to also reinstall Nextcloud.
+36
View File
@@ -0,0 +1,36 @@
# Config
## PHP Version
The PHP version can be changed by setting the `PHP_VERSION` environment variable in your local `.env` file. If no value is set the minimum required version for the current Nextcloud version will be used depending on the Nextcloud container.
```bash
# For using PHP 8.3
PHP_VERSION=83
```
The variable supports the following values:
- PHP 7.1: `71`
- PHP 7.2: `72`
- PHP 7.3: `73`
- PHP 7.4: `74`
- PHP 8.0: `80`
- PHP 8.1: `81`
- PHP 8.2: `82`
- PHP 8.3: `83` (currently the xdebug and imagick php extensions are not available for this version)
## Nextcloud config.php
The config.php file of Nextcloud is pre-seeded with lots of configuration values. In order to change them you can place a personal config.php file in `data/shared/config.php`. This file will be included after the default config.php file for all Nextcloud containers.
```php
<?php
$CONFIG = [
'loglevel' => 2,
'log_query' => true,
'log.condition' => [
'apps' => ['myapp'],
],
];
```
+29
View File
@@ -0,0 +1,29 @@
# Setup hooks
In order to customize the behavior of the application, you can use hooks. Hooks need to be placed in the `data/shared/hooks/` directory. They will be picked up by the docker containers automatically. They can be used for automating setup specific to a developers use cases. For example, you can use them to create a user, install an app, or run a script before or after the installation of Nextcloud.
The following hooks are currently available:
- before-install.sh Runs before the installation of Nextcloud
- after-install.sh Runs after the installation of Nextcloud
- before-start.sh Runs before the start of Nextcloud webserver
- after-start.sh Runs after the start of Nextcloud webserver
## Example for after-install.sh
```bash
#!/bin/bash
echo 'Create some users'
export OC_PASS=mycustomuser
occ user:add --password-from-env mycustomuser
```
## Example for before-start.sh
```bash
#!/bin/bash
echo 'Always disable the firstrunwizard'
occ app:disable firstrunwizard
```
+15
View File
@@ -0,0 +1,15 @@
# Tips
## Shell aliases
It can be useful to be able to access your setup quickly through your shell. Here are some examples that you could add to your bashrc or zshrc:
## nc-dev
The following shell function allows you to run `nc-dev` instead of `docker-compose` in any location. This way you can run for example `nc-dev up -d nextcloud`, `nc-dev exec nextcloud bash` or `nc-dev exec nextcloud occ`.
````
nc-dev() {
(cd ~/path/to/nextcloud-docker-dev && docker-compose $@)
}
```
+17
View File
@@ -0,0 +1,17 @@
This documentation covers a Nextcloud development environment using docker-compose providing a large variety of services for Nextcloud server and app development and testing.
**DO NOT USE THIS IN PRODUCTION**
Various settings in this setup are considered insecure and default passwords and secrets are used all over the place
- ☁ Nextcloud containers for running multiple versions
- 🐘 Multiple PHP versions
- 🔒 Nginx proxy with optional SSL termination
- 🛢️ MySQL/PostgreSQL/MariaDB/SQLite/MaxScale, Redis cache
- 💾 Local or S3 primary storage
- 👥 LDAP with example user data, Keycloak
- ✉ Mailhog for testing mail sending
- 🚀 Blackfire, Xdebug for profiling and debugging
- 📄 Lots of integrating service containers: Collabora Online, Onlyoffice, Elasticsearch, ...
Follow the [getting started guide](https://juliushaertl.github.io/nextcloud-docker-dev/basics/getting-started/) or the [Nextcloud developer tutorial](https://nextcloud.com/developer/) to get started.
-57
View File
@@ -1,57 +0,0 @@
# Manual setup
## Nextcloud Code
The Nextcloud code base needs to be available including the `3rdparty` submodule. To clone it from github run:
```bash
git clone https://github.com/nextcloud/server.git
cd server
git submodule update --init
pwd
```
The last command prints the path to the Nextcloud server directory.
Use it for setting the `REPO_PATH_SERVER` in the next step.
## Configure my environment
### Copy environment variables
For this section you don't need to run the `./bootstrap.sh` script.
Here, we learn how to customise our development environment !
First, a `.env` file should be created in the repository root, to keep configuration default on the dev setup:
```bash
cp example.env .env
```
Replace `REPO_PATH_SERVER` with your path using the `pwd` command from the project.
```bash
foo@bar:~/Documents/codes/nextcloud-docker-dev$ pwd
/home/foo/Documents/codes/nextcloud-docker-dev
```
And the new value is :
```bash
REPO_PATH_SERVER=/home/foo/Documents/codes/nextcloud-docker-dev/workspace/server
```
### Setting the PHP version to be used
The Nextcloud instance is setup to run with PHP 8.1 by default.
But, the program adapts the PHP default release to suit the Nextcloud stable release using. For example, the stable23 use PHP 7.3 and the stable24 use PHP 7.4.
If you wish to use a different version of PHP, set the `PHP_VERSION` `.env` variable.
The variable supports the following values:
1. PHP 7.1: `71`
1. PHP 7.2: `72`
1. PHP 7.3: `73`
1. PHP 7.4: `74`
1. PHP 8.0: `80`
-28
View File
@@ -1,28 +0,0 @@
# Running stable versions
The docker compose file provides individual containers for stable Nextcloud releases. In order to run those you will need a checkout of the stable version server branch to your workspace directory. Using [git worktree](https://blog.juliushaertl.de/index.php/2018/01/24/how-to-checkout-multiple-git-branches-at-the-same-time/) makes it easy to have different branches checked out in parallel in separate directories.
Note that for performance reasons the server repository might have been cloned with --depth=1 by default. To get the full history it is highly recommended to run:
```bash
cd workspace/server
git fetch --unshallow
```
This may take some time depending on your internet connection speed.
```bash
cd workspace/server
git worktree add ../stable23 stable23
cd ../stable23
git submodule update --init
```
After adding the worktree you can start the stable container using `docker compose up -d stable23`. You can then add stable23.local to your `/etc/hosts` file to access it.
Git worktrees can also be used to have a checkout of an apps stable brach within the server stable directory.
```bash
cd workspace/server/apps-extra/text
git worktree add ../../../stable23/apps-extra/text stable23
```
+8
View File
@@ -0,0 +1,8 @@
# Antivirus
```bash
docker-compose up -d proxy nextcloud av
```
The [ClamAV](https://www.clamav.net/) antivirus will then be exposed as a daemon with host `nextav` and
port `3310`.
+74
View File
@@ -0,0 +1,74 @@
# Database
## Introduction
By default MySQL will be used as database backend. You can change this by setting the `SQL` variable in the `.env` file. The following databases are supported:
- `mysql`
- `pgsql`
- `sqlite`
- `mariadb-replica`
- `maxscale`
Changing the database env value will require to recreate your setup. You can do this by running `docker-compose down -v` and then `docker-compose up -d nextcloud`.
All databases use the following credentials by default:
- Root password: `nextcloud`
- Username: `nextcloud`
- Password: `nextcloud`
- Database: `nextcloud` or the name of the stable container e.g. `stable27``
## Accessing the database
### MySQL/MariaDB
You can access the database with the following command:
```bash
docker-compose exec mariadb mysql -u root -pnextcloud
```
If you prefer a GUI frontend you can additionally launch the phpmyadmin container with `docker-compose up -d phpmyadmin` and access it via <http://phpmyadmin.local>.
Alternatively you can use a database client to access the database from the host system. The port can be obtained with `docker-compose port database-mysql 3306`. The host is `localhost` and the credentials are the same as above.
### PostgreSQL
You can access the database with the following command:
```bash
docker-compose exec postgres psql -U nextcloud -d nextcloud
```
If you prefer a GUI frontend you can additionally launch the pgadmin container with `docker-compose up -d pgadmin` and access it via <http://pgadmin.local>.
Alternatively you can use a database client to access the database from the host system. The port can be obtained with `docker-compose port database-postgresql 5432`. The host is `localhost` and the credentials are the same as above.
After you have started the container open `pgadmin.local` in a web browser. The password for the `nextcloud.local` is `postgres`.
That's it, open the following path to see the Nextcloud tables: `Server group 1 -> nextcloud.local -> Databases -> nextcloud -> Schemas -> public -> Tables`
### SQLite
You can access the database with the following command:
```bash
docker-compose exec nextcloud sqlite3 /var/www/html/data/nextcloud.db
```
### MariaDB Replica
This mode runs a mariadb primary and read replica setup. The primary is used for writes and the replica for reads. This is useful for larger setups where you want to scale the database.
You can access the database with the following command:
```bash
docker-compose exec database-mariadb-primary mysql -u root -pnextcloud
docker-compose exec database-mariadb-replica mysql -u root -pnextcloud
```
### MaxScale
This mode runs a mariadb primary and read replica setup with maxscale as load balancer. The primary is used for writes and the replica for reads where MaxScale is used to perform a read-write-split.
The logs of MaxScale can be accessed with `docker-compose exec maxscale cat /var/log/maxscale/maxscale.log`.
@@ -3,6 +3,6 @@
Enable the imaginary server for generating previews
```bash
docker composer up proxy nextcloud previews_hpb
docker-compose up proxy nextcloud previews_hpb
./scripts/enable-preview-imaginary.sh
```
+11
View File
@@ -0,0 +1,11 @@
# LDAP
The LDAP sample data is based on <https://github.com/rroemhild/docker-test-openldap> and extended with randomly generated users/groups. For details see [data/ldap-generator/](https://github.com/juliushaertl/nextcloud-docker-dev/tree/master/data/ldap-generator). LDAP will be configured automatically if the ldap container is available during installation.
Example users are: `leela fry bender zoidberg hermes professor`. The password is the same as the uid.
## Useful commands
- Run an LDAP search
- `ldapsearch -x -H ldap://$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' nextcloud_ldap_1) -D "cn=admin,dc=planetexpress,dc=com" -w admin -b "dc=planetexpress,dc=com" -s subtree <filter> <attrs>`
- `docker-compose exec ldap ldapsearch -H 'ldap://localhost' -D "cn=admin,dc=planetexpress,dc=com" -w admin -b "dc=planetexpress,dc=com" "(&(objectclass=inetOrgPerson)(description=*use*))"`
+3
View File
@@ -0,0 +1,3 @@
# Mail
Sending mails from Nextcloud usually requires an email server and account to be configured. This setup provides a [mailhog](https://github.com/mailhog/MailHog) installation that is autoconfigured, so you can browse all mails sent from Nextcloud in the webui by opening [mail.local](http://mail.local) in your browser.
+19
View File
@@ -0,0 +1,19 @@
## Global scale
```
docker-compose up -d proxy portal gs1 gs2 lookup database-mysql
```
Users are named the same as the instance name, e.g. `gs1`, `gs2`
## [Fulltextsearch](https://github.com/nextcloud/fulltextsearch)
```
docker-compose up -d elasticsearch elasticsearch-ui
```
- Address for configuring in Nextcloud: `http://elastic:elastic@elasticsearch:9200`
- Address to access Elasticsearch from outside: `http://elastic:elastic@elasticsearch.local`
- Address for accessing the UI: <http://elasticsearch-ui.local/>
`sudo sysctl -w vm.max_map_count=262144`
+29
View File
@@ -0,0 +1,29 @@
# Nextcloud Office / Collabora Online
Nextcloud Office is a self-hosted and online office suite that can be used with Nextcloud based on Collabora Online.
## Automatic setup
A script is available to automatically setup Collabora Online for you combined with an already running Nextcloud container.
It requires to have the [richdocuments](https://github.com/nextcloud/richdocuments) app cloned into your apps directory.
```bash
./scripts/enable-collabora <container-name>
```
## Manual steps
- Make sure to have the Collabora hostname setup in your `/etc/hosts` file: `127.0.0.1 collabora.local`
- Clone, build and enable the [richdocuments](https://github.com/nextcloud/richdocuments) app
- Start the Collabora Online server in addition to your other containers `docker-compose up -d collabora`
- Make sure you have the [richdocuments app](https://github.com/nextcloud/richdocuments) cloned to your `apps-extra` directory and built the frontend code of the app with `npm ci && npm run build`
- Enable the app and configure `collabora.local` in the Collabora settings inside of Nextcloud
## Using with HTTPS
To properly work with HTTPS, you need to add the following parameter to the Collabora container in the `.env`file:
```
COLLABORA_PARAMS="--o:ssl.termination=true"
```

Some files were not shown because too many files have changed in this diff Show More