This repository has been archived on 2021-12-24. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-01-05 12:43:32 +01:00
|
|
|
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:
|
|
|
|
- 'config:/var/www/html/config'
|
2021-01-05 12:58:45 +01:00
|
|
|
- 'data:/var/www/html/data'
|
|
|
|
- 'root:/var/www/html'
|
2021-01-05 12:43:32 +01:00
|
|
|
|
|
|
|
cron:
|
|
|
|
image: 'nextcloud:20-apache'
|
|
|
|
entrypoint: '/cron.sh'
|
2021-01-05 12:58:45 +01:00
|
|
|
restart: 'always'
|
2021-01-05 12:43:32 +01:00
|
|
|
|
|
|
|
depends_on:
|
|
|
|
- 'app'
|
|
|
|
labels:
|
|
|
|
- 'com.centurylinklabs.watchtower.enable=true'
|
|
|
|
volumes:
|
|
|
|
- 'config:/var/www/html/config'
|
2021-01-05 12:58:45 +01:00
|
|
|
- 'data:/var/www/html/data'
|
|
|
|
- 'root:/var/www/html'
|
2021-01-05 12:43:32 +01:00
|
|
|
|
|
|
|
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:
|
2021-01-05 12:58:45 +01:00
|
|
|
config:
|
2021-01-05 12:43:32 +01:00
|
|
|
data:
|
|
|
|
db-data:
|
2021-01-05 12:58:45 +01:00
|
|
|
root:
|