0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-15 19:05:09 +01:00

Update docker-compose examples to double volume

This commit is contained in:
jonas 2018-10-06 14:39:45 +02:00
parent d70e8c3ab6
commit 7541be85ff
13 changed files with 65 additions and 36 deletions

View file

@ -22,7 +22,8 @@ services:
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- MYSQL_HOST=db - MYSQL_HOST=db
env_file: env_file:
@ -43,4 +44,5 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:

View file

@ -20,7 +20,8 @@ services:
build: ./app build: ./app
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- MYSQL_HOST=db - MYSQL_HOST=db
env_file: env_file:
@ -35,7 +36,7 @@ services:
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud_html:/var/www/html:ro
depends_on: depends_on:
- app - app
@ -43,7 +44,8 @@ services:
build: ./app build: ./app
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
entrypoint: /cron.sh entrypoint: /cron.sh
depends_on: depends_on:
- db - db
@ -51,4 +53,5 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:

View file

@ -18,7 +18,8 @@ services:
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- MYSQL_HOST=db - MYSQL_HOST=db
env_file: env_file:
@ -28,4 +29,5 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:

View file

@ -16,7 +16,8 @@ services:
image: nextcloud:fpm image: nextcloud:fpm
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- MYSQL_HOST=db - MYSQL_HOST=db
env_file: env_file:
@ -30,10 +31,11 @@ services:
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud_html:/var/www/html:ro
depends_on: depends_on:
- app - app
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:

View file

@ -15,7 +15,8 @@ services:
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- POSTGRES_HOST=db - POSTGRES_HOST=db
env_file: env_file:
@ -25,4 +26,5 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:

View file

@ -13,7 +13,8 @@ services:
image: nextcloud:fpm image: nextcloud:fpm
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- POSTGRES_HOST=db - POSTGRES_HOST=db
env_file: env_file:
@ -27,10 +28,11 @@ services:
ports: ports:
- 8080:80 - 8080:80
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud_html:/var/www/html:ro
depends_on: depends_on:
- app - app
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:

View file

@ -16,7 +16,8 @@ services:
image: nextcloud:fpm image: nextcloud:fpm
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- MYSQL_HOST=db - MYSQL_HOST=db
env_file: env_file:
@ -28,7 +29,7 @@ services:
build: ./web build: ./web
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud_html:/var/www/html:ro
environment: environment:
- VIRTUAL_HOST= - VIRTUAL_HOST=
depends_on: depends_on:
@ -69,7 +70,8 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:
certs: certs:
vhost.d: vhost.d:
html: html:

View file

@ -20,7 +20,8 @@ services:
build: ./app build: ./app
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- VIRTUAL_HOST= - VIRTUAL_HOST=
- LETSENCRYPT_HOST= - LETSENCRYPT_HOST=
@ -39,7 +40,8 @@ services:
build: ./app build: ./app
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
entrypoint: /cron.sh entrypoint: /cron.sh
depends_on: depends_on:
- db - db
@ -76,7 +78,8 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:
certs: certs:
vhost.d: vhost.d:
html: html:

View file

@ -20,7 +20,8 @@ services:
build: ./app build: ./app
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- MYSQL_HOST=db - MYSQL_HOST=db
env_file: env_file:
@ -33,7 +34,7 @@ services:
build: ./web build: ./web
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud_html:/var/www/html:ro
environment: environment:
- VIRTUAL_HOST= - VIRTUAL_HOST=
- LETSENCRYPT_HOST= - LETSENCRYPT_HOST=
@ -48,7 +49,8 @@ services:
build: ./app build: ./app
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
entrypoint: /cron.sh entrypoint: /cron.sh
depends_on: depends_on:
- db - db
@ -85,7 +87,8 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:
certs: certs:
vhost.d: vhost.d:
html: html:

View file

@ -16,7 +16,8 @@ services:
image: nextcloud:apache image: nextcloud:apache
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- VIRTUAL_HOST= - VIRTUAL_HOST=
- LETSENCRYPT_HOST= - LETSENCRYPT_HOST=
@ -61,7 +62,8 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:
certs: certs:
vhost.d: vhost.d:
html: html:

View file

@ -16,7 +16,8 @@ services:
image: nextcloud:fpm image: nextcloud:fpm
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- MYSQL_HOST=db - MYSQL_HOST=db
env_file: env_file:
@ -28,7 +29,7 @@ services:
build: ./web build: ./web
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud_html:/var/www/html:ro
environment: environment:
- VIRTUAL_HOST= - VIRTUAL_HOST=
- LETSENCRYPT_HOST= - LETSENCRYPT_HOST=
@ -70,7 +71,8 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:
certs: certs:
vhost.d: vhost.d:
html: html:

View file

@ -13,7 +13,8 @@ services:
image: nextcloud:apache image: nextcloud:apache
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- VIRTUAL_HOST= - VIRTUAL_HOST=
- LETSENCRYPT_HOST= - LETSENCRYPT_HOST=
@ -58,7 +59,8 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:
certs: certs:
vhost.d: vhost.d:
html: html:

View file

@ -13,7 +13,8 @@ services:
image: nextcloud:fpm image: nextcloud:fpm
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html - nextcloud_html:/var/www/html
- nextcloud_data:/var/nc_data
environment: environment:
- POSTGRES_HOST=db - POSTGRES_HOST=db
env_file: env_file:
@ -25,7 +26,7 @@ services:
build: ./web build: ./web
restart: always restart: always
volumes: volumes:
- nextcloud:/var/www/html:ro - nextcloud_html:/var/www/html:ro
environment: environment:
- VIRTUAL_HOST= - VIRTUAL_HOST=
- LETSENCRYPT_HOST= - LETSENCRYPT_HOST=
@ -67,7 +68,8 @@ services:
volumes: volumes:
db: db:
nextcloud: nextcloud_html:
nextcloud_data:
certs: certs:
vhost.d: vhost.d:
html: html: