nxcloud/docker-compose.yml

73 lines
1.5 KiB
YAML
Raw Normal View History

2024-04-06 15:53:06 +00:00
---
services:
nginx:
build: ./nginx
2024-04-06 17:09:38 +00:00
ports:
- 8080:80
2024-04-06 17:09:38 +00:00
- 443:443
2024-04-06 15:53:06 +00:00
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
2024-04-06 15:53:06 +00:00
networks:
- nextcloud
depends_on:
- server
- redis
- mariadb
2024-04-06 15:53:06 +00:00
server:
build:
context: ./php-fpm
tags:
- vcs.enp.one/skylab/nextcloud-server:latest
2024-04-06 15:53:06 +00:00
volumes:
- ./appdata/application:/var/www/html
- ./appdata/data:/data
2024-04-06 15:53:06 +00:00
networks:
- nextcloud
mariadb:
2024-04-06 15:53:06 +00:00
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- ./appdata/database:/var/lib/mysql
2024-04-06 15:53:06 +00:00
environment:
- MARIADB_RANDOM_ROOT_PASSWORD=true
- MYSQL_PASSWORD=nextcloud
2024-04-06 15:53:06 +00:00
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
networks:
- nextcloud
redis:
2024-04-06 20:03:16 +00:00
image: eqalpha/keydb
2024-04-06 15:53:06 +00:00
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
2024-04-06 15:53:06 +00:00
networks:
nextcloud:
driver: bridge