73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
---
|
|
services:
|
|
|
|
nginx:
|
|
build: ./nginx
|
|
ports:
|
|
- 8080:80
|
|
- 443:443
|
|
volumes:
|
|
- ./appdata/application:/var/www/html
|
|
- ./appdata/data:/data
|
|
environment:
|
|
- NEXTCLOUD_PHP_FPM_HOST=nxcloud-server-1:9000
|
|
- NEXTCLOUD_DOMAIN=localhost
|
|
- NEXTCLOUD_MAX_UPLOAD_SIZE=4G
|
|
networks:
|
|
- nextcloud
|
|
depends_on:
|
|
- server
|
|
- redis
|
|
- mariadb
|
|
|
|
server:
|
|
build:
|
|
context: ./php-fpm
|
|
tags:
|
|
- vcs.enp.one/skylab/nextcloud-server:latest
|
|
volumes:
|
|
- ./appdata/application:/var/www/html
|
|
- ./appdata/data:/data
|
|
networks:
|
|
- nextcloud
|
|
|
|
mariadb:
|
|
image: mariadb
|
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
volumes:
|
|
- ./appdata/database:/var/lib/mysql
|
|
environment:
|
|
- MARIADB_RANDOM_ROOT_PASSWORD=true
|
|
- MYSQL_PASSWORD=nextcloud
|
|
- MYSQL_DATABASE=nextcloud
|
|
- MYSQL_USER=nextcloud
|
|
networks:
|
|
- nextcloud
|
|
|
|
redis:
|
|
image: eqalpha/keydb
|
|
networks:
|
|
- nextcloud
|
|
|
|
cron:
|
|
image: vcs.enp.one/skylab/nextcloud-server:latest
|
|
command:
|
|
- -c
|
|
- "'while true; do php --define apc.enable_cli=1 /var/www/html/cron.php; sleep 300; done'"
|
|
networks:
|
|
- nextcloud
|
|
user: www-data
|
|
entrypoint:
|
|
- /bin/bash
|
|
volumes:
|
|
- ./appdata/application:/var/www/html
|
|
- ./appdata/data:/data
|
|
depends_on:
|
|
- server
|
|
- redis
|
|
- mariadb
|
|
|
|
networks:
|
|
nextcloud:
|
|
driver: bridge
|