Started nextcloud config

pull/3/head
Jef Roosens 2021-01-05 12:43:32 +01:00
parent bcc88886bf
commit eee1de9a36
1 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,62 @@
version: '3.5'
services:
app:
image: 'nextcloud:20-apache'
restart: 'always'
depends_on:
- 'db'
- 'redis'
env_file:
- 'nc.env'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
networks:
- 'default'
- 'nginx'
volumes:
- 'root:/var/www/html'
- 'data:/var/www/html/data'
- 'config:/var/www/html/config'
cron:
image: 'nextcloud:20-apache'
restart: 'always'
entrypoint: '/cron.sh'
depends_on:
- 'app'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
volumes:
- 'root:/var/www/html'
- 'data:/var/www/html/data'
- 'config:/var/www/html/config'
db:
image: 'postgres:13-alpine'
restart: 'always'
env_file:
- 'db.env'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
volumes:
- 'db-data:/var/lib/postgresql/data'
redis:
image: 'redis:6-alpine'
restart: 'always'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
networks:
nginx:
external: true
volumes:
root:
data:
db-data: