Inital Commit

This commit is contained in:
2021-04-24 16:50:23 +03:00
commit 6d55c8717a

46
docker-compose.yml Executable file
View File

@@ -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