Skip to content

Commit 614be28

Browse files
tzerberJ0WI
andauthored
Updated examples (#2405)
* Updated examples Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> * Lock examples to PostgreSQL 16 Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> * Pin postgresql to 16 in Readme example Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> * Update .examples/docker-compose/insecure/mariadb/apache/compose.yaml Co-authored-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> * Update .examples/docker-compose/insecure/postgres/apache/compose.yaml Co-authored-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> * Update .examples/docker-compose/insecure/mariadb/fpm/compose.yaml Co-authored-by: J0WI <J0WI@users.noreply.github.com> Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> * Moved some comments on new lines. Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> * Moved another comment to new line Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> * Unified across files / updated README file. Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> * Use canonical links to external services. Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> --------- Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com> Co-authored-by: J0WI <J0WI@users.noreply.github.com>
1 parent 645f515 commit 614be28

17 files changed

Lines changed: 120 additions & 43 deletions

File tree

.examples/docker-compose/insecure/mariadb/apache/compose.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
services:
2+
# Note: MariaDB is an external service. You can find more information about the configuration here:
3+
# https://hub.docker.com/_/mariadb
24
db:
3-
image: mariadb:10.11
5+
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
6+
image: mariadb:lts
47
command: --transaction-isolation=READ-COMMITTED
58
restart: always
69
volumes:
@@ -12,6 +15,8 @@ services:
1215
env_file:
1316
- db.env
1417

18+
# Note: Redis is an external service. You can find more information about the configuration here:
19+
# https://hub.docker.com/_/redis
1520
redis:
1621
image: redis:alpine
1722
restart: always

.examples/docker-compose/insecure/mariadb/fpm/compose.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
services:
2+
# Note: MariaDB is an external service. You can find more information about the configuration here:
3+
# https://hub.docker.com/_/mariadb
24
db:
3-
image: mariadb:10.11
5+
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
6+
image: mariadb:lts
47
command: --transaction-isolation=READ-COMMITTED
58
restart: always
69
volumes:
@@ -12,6 +15,8 @@ services:
1215
env_file:
1316
- db.env
1417

18+
# Note: Redis is an external service. You can find more information about the configuration here:
19+
# https://hub.docker.com/_/redis
1520
redis:
1621
image: redis:alpine
1722
restart: always
@@ -31,14 +36,18 @@ services:
3136
- db
3237
- redis
3338

39+
# Note: Nginx is an external service. You can find more information about the configuration here:
40+
# https://hub.docker.com/_/nginx/
3441
web:
35-
build: ./web
42+
image: nginx:alpine-slim
3643
restart: always
3744
ports:
3845
- 127.0.0.1:8080:80
3946
volumes:
47+
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html
48+
- ./web/nginx.conf:/etc/nginx/nginx.conf:ro
49+
# NOTE: The `volumes` included below should match those of the `app` container (unless you know what you're doing)
4050
- nextcloud:/var/www/html:z,ro
41-
# NOTE: The `volumes` included here should match those of the `app` container (unless you know what you're doing)
4251
depends_on:
4352
- app
4453

.examples/docker-compose/insecure/mariadb/fpm/web/Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

.examples/docker-compose/insecure/postgres/apache/compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
services:
2+
# Note: PostgreSQL is an external service. You can find more information about the configuration here:
3+
# https://hub.docker.com/_/postgres
24
db:
5+
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
36
image: postgres:alpine
47
restart: always
58
volumes:
69
- db:/var/lib/postgresql/data:Z
710
env_file:
811
- db.env
912

13+
# Note: Redis is an external service. You can find more information about the configuration here:
14+
# https://hub.docker.com/_/redis
1015
redis:
1116
image: redis:alpine
1217
restart: always

.examples/docker-compose/insecure/postgres/fpm/compose.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
services:
2+
# Note: PostgreSQL is an external service. You can find more information about the configuration here:
3+
# https://hub.docker.com/_/postgres
24
db:
5+
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
36
image: postgres:alpine
47
restart: always
58
volumes:
69
- db:/var/lib/postgresql/data:Z
710
env_file:
811
- db.env
912

13+
# Note: Redis is an external service. You can find more information about the configuration here:
14+
# https://hub.docker.com/_/redis
1015
redis:
1116
image: redis:alpine
1217
restart: always
@@ -26,14 +31,18 @@ services:
2631
- db
2732
- redis
2833

34+
# Note: Nginx is an external service. You can find more information about the configuration here:
35+
# https://hub.docker.com/_/nginx/
2936
web:
30-
build: ./web
37+
image: nginx:alpine-slim
3138
restart: always
3239
ports:
3340
- 127.0.0.1:8080:80
3441
volumes:
42+
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html
43+
- ./web/nginx.conf:/etc/nginx/nginx.conf:ro
44+
# NOTE: The `volumes` included below should match those of the `app` container (unless you know what you're doing)
3545
- nextcloud:/var/www/html:z,ro
36-
# NOTE: The `volumes` included here should match those of the `app` container (unless you know what you're doing)
3746
depends_on:
3847
- app
3948

.examples/docker-compose/insecure/postgres/fpm/web/Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

.examples/docker-compose/with-nginx-proxy/mariadb/apache/compose.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
services:
2+
# Note: MariaDB is an external service. You can find more information about the configuration here:
3+
# https://hub.docker.com/_/mariadb
24
db:
3-
image: mariadb:10.11
5+
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
6+
image: mariadb:lts
47
command: --transaction-isolation=READ-COMMITTED
58
restart: always
69
volumes:
@@ -12,6 +15,8 @@ services:
1215
env_file:
1316
- db.env
1417

18+
# Note: Redis is an external service. You can find more information about the configuration here:
19+
# https://hub.docker.com/_/redis
1520
redis:
1621
image: redis:alpine
1722
restart: always
@@ -33,9 +38,6 @@ services:
3338
depends_on:
3439
- db
3540
- redis
36-
# Added proxy container dependency below.
37-
# It is unclear on when or why it happens, but sometimes NC manages to start before the proxy
38-
# and it breaks for whatever weird reason resulting in the need of manual proxy container restart.
3941
- proxy
4042
networks:
4143
- proxy-tier
@@ -52,6 +54,9 @@ services:
5254
- db
5355
- redis
5456

57+
# Note: Nginx-proxy is an external service. You can find more information about the configuration here:
58+
# Warning: Do not use :latest tags of nginx-proxy unless absolutely sure about the consequences.
59+
# https://hub.docker.com/r/nginxproxy/nginx-proxy
5560
proxy:
5661
build: ./proxy
5762
restart: always
@@ -69,6 +74,8 @@ services:
6974
networks:
7075
- proxy-tier
7176

77+
# Note: Letsencrypt companion is an external service. You can find more information about the configuration here:
78+
# https://hub.docker.com/r/nginxproxy/acme-companion
7279
letsencrypt-companion:
7380
image: nginxproxy/acme-companion
7481
restart: always
@@ -85,7 +92,7 @@ services:
8592
depends_on:
8693
- proxy
8794

88-
# self signed
95+
# self signed,outdated
8996
# omgwtfssl:
9097
# image: paulczar/omgwtfssl
9198
# restart: "no"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM nginxproxy/nginx-proxy:alpine
1+
FROM nginxproxy/nginx-proxy:1.7-alpine
22

33
COPY uploadsize.conf /etc/nginx/conf.d/uploadsize.conf

.examples/docker-compose/with-nginx-proxy/mariadb/fpm/compose.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
services:
2+
# Note: MariaDB is an external service. You can find more information about the configuration here:
3+
# https://hub.docker.com/_/mariadb
24
db:
3-
image: mariadb:10.11
5+
# Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
6+
image: mariadb:lts
47
command: --transaction-isolation=READ-COMMITTED
58
restart: always
69
volumes:
@@ -12,6 +15,8 @@ services:
1215
env_file:
1316
- db.env
1417

18+
# Note: Redis is an external service. You can find more information about the configuration here:
19+
# https://hub.docker.com/_/redis
1520
redis:
1621
image: redis:alpine
1722
restart: always
@@ -32,12 +37,16 @@ services:
3237
- redis
3338
- proxy
3439

40+
# Note: Nginx is an external service. You can find more information about the configuration here:
41+
# https://hub.docker.com/_/nginx/
3542
web:
36-
build: ./web
43+
image: nginx:alpine-slim
3744
restart: always
3845
volumes:
46+
# https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html
47+
- ./web/nginx.conf:/etc/nginx/nginx.conf:ro
48+
# NOTE: The `volumes` included below should match those of the `app` container (unless you know what you're doing)
3949
- nextcloud:/var/www/html:z,ro
40-
# NOTE: The `volumes` included here should match those of the `app` container (unless you know what you're doing)
4150
environment:
4251
- VIRTUAL_HOST=
4352
- LETSENCRYPT_HOST=
@@ -59,6 +68,9 @@ services:
5968
- db
6069
- redis
6170

71+
# Note: Nginx-proxy is an external service. You can find more information about the configuration here:
72+
# Warning: Do not use :latest tags of nginx-proxy unless absolutely sure about the consequences.
73+
# https://hub.docker.com/r/nginxproxy/nginx-proxy
6274
proxy:
6375
build: ./proxy
6476
restart: always
@@ -75,6 +87,8 @@ services:
7587
networks:
7688
- proxy-tier
7789

90+
# Note: Letsencrypt companion is an external service. You can find more information about the configuration here:
91+
# https://hub.docker.com/r/nginxproxy/acme-companion
7892
letsencrypt-companion:
7993
image: nginxproxy/acme-companion
8094
restart: always
@@ -91,7 +105,7 @@ services:
91105
depends_on:
92106
- proxy
93107

94-
# self signed
108+
# self signed, outdated.
95109
# omgwtfssl:
96110
# image: paulczar/omgwtfssl
97111
# restart: "no"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM nginxproxy/nginx-proxy:alpine
1+
FROM nginxproxy/nginx-proxy:1.7-alpine
22

33
COPY uploadsize.conf /etc/nginx/conf.d/uploadsize.conf

0 commit comments

Comments
 (0)