54 lines
1.2 KiB
YAML
Executable File
54 lines
1.2 KiB
YAML
Executable File
version: "2.1"
|
|
services:
|
|
nextcloud-db:
|
|
container_name: nextcloud_db
|
|
image: postgres:alpine
|
|
restart: always
|
|
volumes:
|
|
- /Red-Vol/Media/Cloud/postgresql/data:/var/lib/postgresql/data
|
|
- /etc/localtime:/etc/localtime
|
|
env_file:
|
|
- db.env
|
|
redis:
|
|
container_name: nextcloud_redis
|
|
image: redis:alpine
|
|
restart: always
|
|
nextcloud:
|
|
container_name: nextcloud_server
|
|
image: linuxserver/nextcloud:latest
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Asia/Jerusalem
|
|
- REDIS_HOST=redis
|
|
- POSTGRES_HOST=db
|
|
env_file:
|
|
- db.env
|
|
depends_on:
|
|
- nextcloud-db
|
|
volumes:
|
|
- /Red-Vol/Media/Cloud/config:/config
|
|
- /Red-Vol/Media/Cloud/data:/data
|
|
- /etc/localtime:/etc/localtime
|
|
ports:
|
|
- 4433:443
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- nextcloud-db
|
|
- redis
|
|
cron:
|
|
container_name: nextcloud_cron
|
|
image: nextcloud:apache
|
|
restart: always
|
|
volumes:
|
|
- /Red-Vol/Media/Cloud/cron:/var/www/html
|
|
- /etc/localtime:/etc/localtime
|
|
entrypoint: /cron.sh
|
|
depends_on:
|
|
- nextcloud-db
|
|
- redis
|
|
networks:
|
|
default:
|
|
external: true
|
|
name: gerbil_network
|