2024-04-06 15:53:06 +00:00
|
|
|
---
|
|
|
|
services:
|
|
|
|
|
|
|
|
nginx:
|
2024-04-10 23:11:09 +00:00
|
|
|
build: ./nginx
|
2024-04-06 17:09:38 +00:00
|
|
|
ports:
|
2024-04-12 17:45:53 +00:00
|
|
|
- 8080:80
|
2024-04-06 17:09:38 +00:00
|
|
|
- 443:443
|
2024-04-06 15:53:06 +00:00
|
|
|
volumes:
|
2024-04-12 17:45:53 +00:00
|
|
|
- ./appdata/application:/var/www/html
|
|
|
|
- ./appdata/data:/data
|
2024-04-10 23:11:09 +00:00
|
|
|
environment:
|
2024-04-12 17:45:53 +00:00
|
|
|
- NEXTCLOUD_PHP_FPM_HOST=nxcloud-server-1:9000
|
|
|
|
- NEXTCLOUD_DOMAIN=localhost
|
|
|
|
- NEXTCLOUD_MAX_UPLOAD_SIZE=4G
|
2024-04-06 15:53:06 +00:00
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
depends_on:
|
2024-04-12 17:45:53 +00:00
|
|
|
- server
|
|
|
|
- redis
|
|
|
|
- mariadb
|
2024-04-06 15:53:06 +00:00
|
|
|
|
2024-04-12 17:45:53 +00:00
|
|
|
server:
|
2024-04-10 23:50:22 +00:00
|
|
|
build:
|
|
|
|
context: ./php-fpm
|
|
|
|
tags:
|
2024-04-12 17:45:53 +00:00
|
|
|
- vcs.enp.one/skylab/nextcloud-server:latest
|
2024-04-06 15:53:06 +00:00
|
|
|
volumes:
|
2024-04-12 17:45:53 +00:00
|
|
|
- ./appdata/application:/var/www/html
|
|
|
|
- ./appdata/data:/data
|
2024-04-06 15:53:06 +00:00
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
|
2024-04-12 17:45:53 +00:00
|
|
|
mariadb:
|
2024-04-06 15:53:06 +00:00
|
|
|
image: mariadb
|
|
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
|
|
volumes:
|
2024-04-12 17:45:53 +00:00
|
|
|
- ./appdata/database:/var/lib/mysql
|
2024-04-06 15:53:06 +00:00
|
|
|
environment:
|
2024-04-12 17:45:53 +00:00
|
|
|
- MARIADB_RANDOM_ROOT_PASSWORD=true
|
|
|
|
- MYSQL_PASSWORD=nextcloud
|
2024-04-06 15:53:06 +00:00
|
|
|
- MYSQL_DATABASE=nextcloud
|
|
|
|
- MYSQL_USER=nextcloud
|
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
|
2024-04-12 17:45:53 +00:00
|
|
|
redis:
|
2024-04-06 20:03:16 +00:00
|
|
|
image: eqalpha/keydb
|
2024-04-06 15:53:06 +00:00
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
|
2024-04-12 17:45:53 +00:00
|
|
|
cron:
|
|
|
|
image: vcs.enp.one/skylab/nextcloud-server:latest
|
2024-04-10 23:50:22 +00:00
|
|
|
command:
|
|
|
|
- -c
|
2024-04-12 17:45:53 +00:00
|
|
|
- "'while true; do php --define apc.enable_cli=1 /var/www/html/cron.php; sleep 300; done'"
|
2024-04-10 23:50:22 +00:00
|
|
|
networks:
|
|
|
|
- nextcloud
|
|
|
|
user: www-data
|
2024-04-12 17:45:53 +00:00
|
|
|
entrypoint:
|
|
|
|
- /bin/bash
|
2024-04-10 23:50:22 +00:00
|
|
|
volumes:
|
2024-04-12 17:45:53 +00:00
|
|
|
- ./appdata/application:/var/www/html
|
|
|
|
- ./appdata/data:/data
|
2024-04-10 23:50:22 +00:00
|
|
|
depends_on:
|
2024-04-12 17:45:53 +00:00
|
|
|
- server
|
|
|
|
- redis
|
|
|
|
- mariadb
|
2024-04-10 23:50:22 +00:00
|
|
|
|
2024-04-06 15:53:06 +00:00
|
|
|
networks:
|
|
|
|
nextcloud:
|
|
|
|
driver: bridge
|