@@ -85,7 +85,6 @@ Assuming we have a local ``hue.ini`` as shown in the previous section:
```
cd tools/docker/hue
-cp docker-compose.yml.sample docker-compose.yml
Then:
@@ -0,0 +1,27 @@
+version: '3'
+
+services:
+ cloudera:
+ image: gethue/hue:latest
+ hostname: hue
+ container_name: hue
+ dns: 8.8.8.8
+ ports:
+ - "8888:8888"
+ volumes:
+ - ./hue.ini:/usr/share/hue/desktop/conf/z-hue.ini
+ depends_on:
+ - "database"
+ database:
+ image: mysql:5.7
+ - "33061:3306"
+ command: --init-file /data/application/init.sql
+ - ./init.sql:/data/application/init.sql
+ environment:
+ MYSQL_ROOT_USER: root
+ MYSQL_ROOT_PASSWORD: secret
+ MYSQL_DATABASE: hue
+ MYSQL_USER: root
+ MYSQL_PASSWORD: secret
@@ -1,9 +0,0 @@
-cloudera:
- image: gethue/hue:latest
- hostname: hue
- container_name: hue
- dns: 8.8.8.8
- ports:
- - "8888:8888"
- volumes:
- - ./hue.ini:/hue/desktop/conf/hue.ini
@@ -32,6 +32,13 @@
# password=hue
# name=hue
+ engine=mysql
+ host=database
+ port=3306
+ user=root
+ password=secret
+ name=hue
###########################################################################
# Settings to configure the snippets available in the Notebook
@@ -0,0 +1 @@
+CREATE DATABASE IF NOT EXISTS hue;