Skip to content

Commit aaa667a

Browse files
Merge pull request #2320 from nextcloud/jtr/fix-examples-matching-volumes
fix(examples): volumes must match to avoid 💥
2 parents cb8afbb + 9b245ac commit aaa667a

8 files changed

Lines changed: 21 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ services:
2323
- 127.0.0.1:8080:80
2424
volumes:
2525
- nextcloud:/var/www/html:z
26+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
2627
environment:
2728
- MYSQL_HOST=db
2829
- REDIS_HOST=redis
@@ -37,6 +38,7 @@ services:
3738
restart: always
3839
volumes:
3940
- nextcloud:/var/www/html:z
41+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
4042
entrypoint: /cron.sh
4143
depends_on:
4244
- db

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ services:
2121
restart: always
2222
volumes:
2323
- nextcloud:/var/www/html:z
24+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
2425
environment:
2526
- MYSQL_HOST=db
2627
- REDIS_HOST=redis
@@ -37,6 +38,7 @@ services:
3738
- 127.0.0.1:8080:80
3839
volumes:
3940
- 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)
4042
depends_on:
4143
- app
4244

@@ -45,6 +47,7 @@ services:
4547
restart: always
4648
volumes:
4749
- nextcloud:/var/www/html:z
50+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
4851
entrypoint: /cron.sh
4952
depends_on:
5053
- db

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ services:
1818
- 127.0.0.1:8080:80
1919
volumes:
2020
- nextcloud:/var/www/html:z
21+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
2122
environment:
2223
- POSTGRES_HOST=db
2324
- REDIS_HOST=redis
@@ -32,11 +33,12 @@ services:
3233
restart: always
3334
volumes:
3435
- nextcloud:/var/www/html:z
36+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
3537
entrypoint: /cron.sh
3638
depends_on:
3739
- db
3840
- redis
3941

4042
volumes:
4143
db:
42-
nextcloud:
44+
nextcloud:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ services:
1616
restart: always
1717
volumes:
1818
- nextcloud:/var/www/html:z
19+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
1920
environment:
2021
- POSTGRES_HOST=db
2122
- REDIS_HOST=redis
@@ -32,6 +33,7 @@ services:
3233
- 127.0.0.1:8080:80
3334
volumes:
3435
- 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)
3537
depends_on:
3638
- app
3739

@@ -40,6 +42,7 @@ services:
4042
restart: always
4143
volumes:
4244
- nextcloud:/var/www/html:z
45+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
4346
entrypoint: /cron.sh
4447
depends_on:
4548
- db

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ services:
2121
restart: always
2222
volumes:
2323
- nextcloud:/var/www/html:z
24+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
2425
environment:
2526
- VIRTUAL_HOST=
2627
- LETSENCRYPT_HOST=
@@ -45,6 +46,7 @@ services:
4546
restart: always
4647
volumes:
4748
- nextcloud:/var/www/html:z
49+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
4850
entrypoint: /cron.sh
4951
depends_on:
5052
- db

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ services:
2121
restart: always
2222
volumes:
2323
- nextcloud:/var/www/html:z
24+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
2425
environment:
2526
- MYSQL_HOST=db
2627
- REDIS_HOST=redis
@@ -36,6 +37,7 @@ services:
3637
restart: always
3738
volumes:
3839
- 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)
3941
environment:
4042
- VIRTUAL_HOST=
4143
- LETSENCRYPT_HOST=
@@ -51,6 +53,7 @@ services:
5153
restart: always
5254
volumes:
5355
- nextcloud:/var/www/html:z
56+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
5457
entrypoint: /cron.sh
5558
depends_on:
5659
- db

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ services:
1616
restart: always
1717
volumes:
1818
- nextcloud:/var/www/html:z
19+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
1920
environment:
2021
- VIRTUAL_HOST=
2122
- LETSENCRYPT_HOST=
@@ -37,6 +38,7 @@ services:
3738
restart: always
3839
volumes:
3940
- nextcloud:/var/www/html:z
41+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
4042
entrypoint: /cron.sh
4143
depends_on:
4244
- db

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ services:
1818
restart: always
1919
volumes:
2020
- nextcloud:/var/www/html:z
21+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
2122
environment:
2223
- POSTGRES_HOST=db
2324
- REDIS_HOST=redis
@@ -33,6 +34,7 @@ services:
3334
restart: always
3435
volumes:
3536
- nextcloud:/var/www/html:z,ro
37+
# NOTE: The `volumes` included here should match those of the `app` container (unless you know what you're doing)
3638
environment:
3739
- VIRTUAL_HOST=
3840
- LETSENCRYPT_HOST=
@@ -48,6 +50,7 @@ services:
4850
restart: always
4951
volumes:
5052
- nextcloud:/var/www/html:z
53+
# NOTE: The `volumes` config of the `cron` and `app` containers must match
5154
entrypoint: /cron.sh
5255
depends_on:
5356
- db

0 commit comments

Comments
 (0)