nextcloud testing

This commit is contained in:
2023-04-26 02:01:31 -05:00
parent e7998289db
commit 0de368c742
5 changed files with 48 additions and 59 deletions

View File

@@ -13,6 +13,54 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
nextcloud-db:
image: postgres:alpine
restart: always
volumes:
- ./appdata/nextcloud/db/data:/var/lib/postgresql/data:z
env_file:
- .env
nextcloud-redis:
image: redis:alpine
restart: always
nextcloud:
image: nextcloud:fpm-alpine
restart: always
volumes:
- ./appdata/nextcloud/html:/var/www/html:z
- /mnt/storage:/storage
environment:
- POSTGRES_HOST=nextcloud-db
- REDIS_HOST=nextcloud-redis
env_file:
- .env
depends_on:
- nextcloud-db
- nextcloud-redis
nextcloud-web:
image: nginx:alpine
restart: always
ports:
- 192.168.1.33:8080:80
volumes:
- ./appdata/nextcloud/nginx.conf:/etc/nginx/nginx.conf
- ./appdata/nextcloud/html:/var/www/html:z,ro
depends_on:
- nextcloud
nextcloud-cron:
image: nextcloud:fpm-alpine
restart: always
volumes:
- ./appdata/nextcloud/html:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- nextcloud-db
- nextcloud-redis
spdf:
container_name: spdf
image: frooodle/s-pdf

View File

@@ -1,3 +0,0 @@
POSTGRES_PASSWORD=8ung1e1!
POSTGRES_DB=nextcloud
POSTGRES_USER=nextcloud

View File

@@ -1,53 +0,0 @@
version: '3'
services:
db:
image: postgres:alpine
restart: always
volumes:
- db:/var/lib/postgresql/data:z
env_file:
- db.env
redis:
image: redis:alpine
restart: always
app:
image: nextcloud:fpm-alpine
restart: always
volumes:
- nextcloud:/var/www/html:z
- /mnt/storage:/storage
environment:
- POSTGRES_HOST=db
- REDIS_HOST=redis
env_file:
- db.env
depends_on:
- db
- redis
web:
build: ./web
restart: always
ports:
- 192.168.1.33:8080:80
volumes:
- nextcloud:/var/www/html:z,ro
depends_on:
- app
cron:
image: nextcloud:fpm-alpine
restart: always
volumes:
- nextcloud:/var/www/html:z
entrypoint: /cron.sh
depends_on:
- db
- redis
volumes:
db:
nextcloud:

View File

@@ -1,3 +0,0 @@
FROM nginx:alpine
COPY nginx.conf /etc/nginx/nginx.conf