commit 6d55c8717abba8d15bff75226573ae7ceb281ce9 Author: shmick Date: Sat Apr 24 16:50:23 2021 +0300 Inital Commit diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100755 index 0000000..084f425 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,46 @@ +version: "2.1" +services: + 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: + image: redis:alpine + restart: always + nextcloud: + container_name: nextcloud + 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: + 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