version: '3.6' services: liferay: image: esystemstech/liferay:7.1.1-ga2 container_name: liferay restart: always environment: - "DB_HOST=mysql" - "DB_SCHEMA=liferay" - "DB_USER=liferay" - "DB_PASSWORD=xxx" - "ELASTICSEARCH_CLUSTER_NAME=docker-cluster" - "ELASTICSEARCH_HOST=elasticsearch" - "ELASTICSEARCH_PORT=9300" - "LIBREOFFICE_ENABLED=true" - "LIBREOFFICE_CACHE=true" - "LIBREOFFICE_HOST=libreoffice" - "LIBREOFFICE_PORT=8100" ports: - 8080:8080 networks: - external - services-only volumes: - liferay-data:/opt/liferay/home/data - liferay-logs:/var/log/tomcat8 - liferay-conversions:/var/lib/tomcat8/temp/liferay/document_conversion tmpfs: - /var/lib/tomcat8/temp/liferay:uid=7002,gid=7006,mode=1770 depends_on: - mysql - elasticsearch - libreoffice elasticsearch: image: esystemstech/elasticsearch:liferay-7.1.1-ga2-cc container_name: elasticsearch hostname: elasticsearch restart: always networks: - services-only volumes: - elasticsearch-data:/usr/share/elasticsearch/data ulimits: nofile: soft: 65536 hard: 65536 expose: - 9200 - 9300 libreoffice: image: esystemstech/libreoffice:liferay-7.1.1-ga2-cc container_name: libreoffice hostname: libreoffice restart: always networks: - services-only expose: - 8100 volumes: - liferay-conversions:/var/lib/tomcat8/temp/liferay/document_conversion mysql: image: mysql:5.7 container_name: mysql hostname: mysql restart: always command: ["mysqld", "--character-set-server=utf8", "--collation-server=utf8_general_ci", "--default-time-zone=+00:00","--explicit_defaults_for_timestamp", "--default-authentication-plugin=mysql_native_password"] networks: - services-only expose: - 3306 environment: - "MYSQL_ROOT_PASSWORD=yyy" - "MYSQL_DATABASE=liferay" - "MYSQL_USER=liferay" - "MYSQL_PASSWORD=xxx" volumes: - mysql-data:/var/lib/mysql volumes: mysql-data: liferay-data: liferay-logs: elasticsearch-data: liferay-conversions: driver_opts: type: tmpfs device: tmpfs o: uid=7002,gid=7005,mode=2770 networks: services-only: internal: true external: internal: false