Von Lars, 6 Monate vorher, geschrieben in Plain Text.
Einbetten
  1. version: '2.2'
  2.  
  3. services:
  4.   db:
  5.     image: mariadb
  6.     container_name: nextcloud-pro-mariadb
  7.     networks:
  8.       - nextcloud-pro_network
  9.     volumes:
  10.       - /home/nextcloud-pro/db:/var/lib/mysql
  11.       - /etc/localtime:/etc/localtime:ro
  12.     environment:
  13.       - MYSQL_ROOT_PASSWORD=superSecret
  14.       - MYSQL_PASSWORD=Supersecret23
  15.       - MYSQL_DATABASE=nextcloud
  16.       - MYSQL_USER=nextcloud
  17.     restart: unless-stopped
  18.   redis:
  19.     container_name: nextcloud-pro_redis
  20.     networks:
  21.       - nextcloud-pro_network
  22.     image: redis:alpine
  23.     restart: always
  24.   app:
  25.     container_name: nextcloud-pro
  26.     build: .
  27.     networks:
  28.       - nextcloud-pro_network
  29.     depends_on:
  30.       - db
  31.       - redis
  32.     volumes:
  33.       - /home/nextcloud-pro/config:/var/www/html/config
  34.       - /home/nextcloud-pro/custom_apps:/var/www/html/custom_apps
  35.       - /home/nextcloud-pro/data:/var/www/html/data
  36.       - /home/nextcloud-pro/themes:/var/www/html/themes
  37.       - /etc/localtime:/etc/localtime:ro
  38.     environment:
  39.       - NEXTCLOUD_TRUSTED_DOMAINS=cloud.domain.tld
  40.       - NEXTCLOUD_ADMIN_USER=User
  41.       - NEXTCLOUD_ADMIN_PASSWORD=Password
  42.       - REDIS_HOST=redis
  43.       - REDIS_HOST_PORT=6379
  44.       - MYSQL_PASSWORD=supersecret23
  45.       - MYSQL_DATABASE=nextcloud
  46.       - MYSQL_USER=nextcloud
  47.     ports:
  48.       - '8090:80'
  49.     restart: unless-stopped
  50.   elasticsearch:
  51.     build: ./elasticsearch
  52.     container_name: els_nextcloud
  53.     restart: always
  54.     environment:
  55.       - cluster.name=ncsearch
  56.       - bootstrap.memory_lock=true
  57.       - discovery.type=single-node
  58.       - "ES_JAVA_OPTS=-Xms750m -Xmx750m"
  59.       - "network.host=0.0.0.0"
  60.     ulimits:
  61.       memlock:
  62.         soft: -1
  63.         hard: -1
  64.         # location for persistent data
  65.     volumes:
  66.       - /opt/docker-ncsearch/nc-data/:/usr/share/elasticsearch/data
  67.     ports:
  68.       - "127.0.0.1:9200:9200"
  69.     expose:  # make elasticsearch reachable in the internal docker network
  70.       - "9200" # direct elasticsearch connection
  71.     networks:
  72.       - nextcloud-pro_network
  73.  
  74. volumes:
  75.   nextcloud:
  76.   db:
  77.  
  78. networks:
  79.   nextcloud-pro_network:
captcha