Nextcloud_Docker/docker-compose.yml

89 lines
1.9 KiB
YAML

version: '3'
services:
app:
container_name: app-server
image: nextcloud:fpm
restart: always
environment:
- TZ=Europa/Berlin
expose:
- '80'
- '9000'
volumes:
- app_data:/var/www/html
- ./www-php.conf:/usr/local/etc/php-fpm.d/www.conf
- "/etc/localtime:/etc/localtime:ro"
networks:
- cloud
onlyoffice-document-server:
container_name: onlyoffice-document-server
image: onlyoffice/documentserver:latest
restart: always
environment:
- JWT_ENABLED=true
- JWT_SECRET=secret
- TZ=Europa/Berlin
expose:
- '80'
- '443'
volumes:
- document_data:/var/www/onlyoffice/Data
- document_log:/var/log/onlyoffice
- /root/docker-onlyoffice-nextcloud/fonts:/usr/share/fonts/truetype/custom
- "/etc/localtime:/etc/localtime:ro"
networks:
- cloud
nginx:
container_name: nginx-server
image: nginx
restart: always
environment:
- TZ=Europa/Berlin
ports:
- 80:80
- 443:443
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- app_data:/var/www/html
- "/etc/localtime:/etc/localtime:ro"
networks:
- cloud
db:
container_name: maria-db
restart: always
image: mariadb
ports:
- 3306:3306
environment:
TZ: Europa/Berlin
MYSQL_ROOT_PASSWORD: ktnpEixbKbZmtzNK52XQBAEajPdnSNF
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: ktnpEixbKbZmtzNK52XQBAEajPdnSNF
volumes:
- ./mariadb:/var/lib/mysql
- "/etc/localtime:/etc/localtime:ro"
networks:
- cloud
volumes:
document_data:
document_log:
app_data:
mysql_data:
networks:
cloud:
name: cloud
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1
driver_opts:
com.docker.network.driver.mtu: 1400