SHARE
TWEET

Untitled

a guest Mar 23rd, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2.1'
  2.  
  3. services:
  4.   #
  5.   # Nextcloud
  6.   #
  7.   nextcloud:
  8.     image: nextcloud
  9.     depends_on:
  10.       - nextcloud-db
  11.       - redis
  12.     restart: always
  13.     environment:
  14.       - TZ=Europe/Amsterdam
  15.       - NEXTCLOUD_ADMIN_USER=admin
  16.       - NEXTCLOUD_ADMIN_PASSWORD=${NEXTCLOUD_DB_ROOT_PW}
  17.       - MYSQL_DATABASE=nextcloud
  18.       - MYSQL_USER=nextcloud
  19.       - MYSQL_PASSWORD=${NEXTCLOUD_DB_PW}
  20.       - MYSQL_HOST=nextcloud-db
  21.       - NEXTCLOUD_TRUSTED_DOMAINS=cloud.cattle.ml
  22.     volumes:
  23.       - /opt/nextcloud/data:/var/www/html/data
  24.       - /opt/nextcloud/config:/var/www/html/config
  25.       - /opt/nextcloud/apps:/var/www/html/custom_apps
  26.       - /opt/nextcloud/themes:/var/www/html/themes
  27.     networks:
  28.       - nextcloud
  29.       - web
  30.     labels:
  31.       - "traefik.enable=true"
  32.       - "traefik.docker.network=web"
  33.       - "traefik.frontend.rule=Host:cloud.cattle.ml"
  34.       - "traefik.port:8888"
  35.  
  36.   #
  37.   # Nextcloud database
  38.   #
  39.   nextcloud-db:
  40.     image: mariadb:10
  41.     volumes:
  42.       - /opt/nextcloud/db:/var/lib/mysql
  43.     environment:
  44.       - MYSQL_ROOT_PASSWORD=${NEXTCLOUD_DB_ROOT_PW}
  45.       - MYSQL_DATABASE=nextcloud
  46.       - MYSQL_USER=nextcloud
  47.       - MYSQL_PASSWORD=${NEXTCLOUD_DB_PW}
  48.     networks:
  49.       - nextcloud
  50.   #
  51.   # Redis
  52.   #
  53.   redis:
  54.     image: redis:alpine
  55.     container_name: redis
  56.     volumes:
  57.       - /data/nextcloud/redis:/data
  58.     networks:
  59.       - nextcloud
  60.  
  61. networks:
  62.   nextcloud:
  63.     driver: bridge
  64.   web:
  65.     external: true
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top