mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update nextcloud
This commit is contained in:
parent
ee3e571f9b
commit
a25c932af3
@ -5,30 +5,6 @@ nextcloud
|
||||
|
||||
[Nextcloud][1] puts your data at your fingertips, under your control.
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
```yaml
|
||||
nextcloud:
|
||||
image: indiehosters/nextcloud
|
||||
ports:
|
||||
- "127.0.0.1:9000:9000"
|
||||
volumes:
|
||||
- ./data/apps:/var/www/html/apps
|
||||
- ./data/config:/var/www/html/config
|
||||
- ./data/data:/var/www/html/data
|
||||
restart: always
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./ssl:/etc/nginx/ssl
|
||||
volumes_from:
|
||||
- nextcloud
|
||||
net: host
|
||||
restart: always
|
||||
```
|
||||
|
||||
## Server Setup
|
||||
|
||||
```bash
|
||||
|
@ -3,7 +3,7 @@ version: "3.8"
|
||||
services:
|
||||
|
||||
nextcloud:
|
||||
image: arm32v7/nextcloud:22
|
||||
image: nextcloud:stable
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
@ -13,14 +13,14 @@ services:
|
||||
- POSTGRES_DB=nextcloud
|
||||
- POSTGRES_USER=nextcloud
|
||||
- POSTGRES_PASSWORD=nextcloud
|
||||
- REDIS_HOST=redis
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
restart: unless-stopped
|
||||
|
||||
postgres:
|
||||
image: arm32v7/postgres:13-alpine
|
||||
ports:
|
||||
- "5432:5432"
|
||||
image: postgres:14-alpine
|
||||
volumes:
|
||||
- ./data/postgres:/var/lib/postgresql/data
|
||||
environment:
|
||||
@ -28,3 +28,10 @@ services:
|
||||
- POSTGRES_PASSWORD=nextcloud
|
||||
- POSTGRES_DB=nextcloud
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: redis:6-alpine
|
||||
command: --save 900 1
|
||||
volumes:
|
||||
- ./data/redis:/data
|
||||
restart: unless-stopped
|
||||
|
@ -1,19 +1,37 @@
|
||||
nextcloud:
|
||||
image: indiehosters/nextcloud
|
||||
ports:
|
||||
- "127.0.0.1:9000:9000"
|
||||
volumes:
|
||||
- ./data/apps:/var/www/html/apps
|
||||
- ./data/config:/var/www/html/config
|
||||
- ./data/data:/var/www/html/data
|
||||
restart: always
|
||||
version: "3.8"
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
volumes:
|
||||
- ./nginx.conf:/etc/nginx/conf.d/default.conf
|
||||
- ./ssl:/etc/nginx/ssl
|
||||
volumes_from:
|
||||
- nextcloud
|
||||
net: host
|
||||
restart: always
|
||||
services:
|
||||
|
||||
nextcloud:
|
||||
image: nextcloud:stable
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- ./data/nextcloud:/var/www/html
|
||||
environment:
|
||||
- POSTGRES_HOST=postgres
|
||||
- POSTGRES_DB=nextcloud
|
||||
- POSTGRES_USER=nextcloud
|
||||
- POSTGRES_PASSWORD=nextcloud
|
||||
- REDIS_HOST=redis
|
||||
depends_on:
|
||||
- postgres
|
||||
- redis
|
||||
restart: unless-stopped
|
||||
|
||||
postgres:
|
||||
image: postgres:14-alpine
|
||||
volumes:
|
||||
- ./data/postgres:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_USER=nextcloud
|
||||
- POSTGRES_PASSWORD=nextcloud
|
||||
- POSTGRES_DB=nextcloud
|
||||
restart: unless-stopped
|
||||
|
||||
redis:
|
||||
image: redis:6-alpine
|
||||
command: --save 900 1
|
||||
volumes:
|
||||
- ./data/redis:/data
|
||||
restart: unless-stopped
|
||||
|
@ -8,13 +8,16 @@ redis
|
||||
## docker-compose.yml
|
||||
|
||||
```yaml
|
||||
redis:
|
||||
image: redis:alpine
|
||||
ports:
|
||||
- "127.0.0.1:6379:6379"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
restart: always
|
||||
version: "3.8"
|
||||
services:
|
||||
redis:
|
||||
image: redis:6-alpine
|
||||
command: --save 900 1
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
[1]: https://redis.io/
|
||||
|
@ -1,8 +1,10 @@
|
||||
redis:
|
||||
image: redis:alpine
|
||||
command: --save 900 1
|
||||
ports:
|
||||
- "127.0.0.1:6379:6379"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
restart: always
|
||||
version: "3.8"
|
||||
services:
|
||||
redis:
|
||||
image: redis:6-alpine
|
||||
command: --save 900 1
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user