docker-compose.yml文件_nextcloud&es&onlyoffice
version: "3"
services:
nextcloud:
image: nextcloud
container_name: nextcloud
stdin_open: true
tty: true
restart: always
ports:
- 9999:80
volumes:
- ./nextcloud:/var/www/html
- ./apps:/var/www/html/custom_apps
- ./config:/var/www/html/config
- ./data/nextcloud:/var/www/html/data
privileged: true
service.onlyoffice:
image: onlyoffice/documentserver
container_name: onlyoffice
ports:
- 9998:80
volumes:
- ./onlyoffice/logs:/var/log/onlyoffice
- ./onlyoffice/data:/var/www/onlyoffice/Data
restart: always
es:
image: elasticsearch:7.5.0
container_name: es
environment:
- "ES_JAVA_OPTS=-Xms128m -Xmx128m"
- "discovery.type=single-node"
ports:
- 9200:9200
- 9300:9300
volumes:
- ./es/data:/usr/share/elasticsearch/data
- ./es/plugins:/usr/share/elasticsearch/plugins
eshead:
image: mobz/elasticsearch-head:5-alpine
container_name: elasticsearch-head
environment:
TZ: 'Asia/Shanghai'
ports:
- 9100:9100
version: "3"
services:
nextcloud:
image: nextcloud
container_name: nextcloud
stdin_open: true
tty: true
restart: always
ports:
- 9999:80
volumes:
- ./nextcloud:/var/www/html
- ./apps:/var/www/html/custom_apps
- ./config:/var/www/html/config
- ./data/nextcloud:/var/www/html/data
privileged: true
service.onlyoffice:
image: onlyoffice/documentserver
container_name: onlyoffice
ports:
- 9998:80
volumes:
- ./onlyoffice/logs:/var/log/onlyoffice
- ./onlyoffice/data:/var/www/onlyoffice/Data
restart: always
es:
image: elasticsearch:7.5.0
container_name: es
environment:
- "ES_JAVA_OPTS=-Xms128m -Xmx128m"
- "discovery.type=single-node"
ports:
- 9200:9200
- 9300:9300
volumes:
- ./es/data:/usr/share/elasticsearch/data
- ./es/plugins:/usr/share/elasticsearch/plugins
mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: nextcloud
MYSQL_PASSWORD: root
MYSQL_DATABASE: nextcloud
ports:
- 3307:3306
command: --character-set-server=utf8