From e92ce2eb6c73157e5f2dc0454ec88d42a63726cc Mon Sep 17 00:00:00 2001 From: Alexander Palchikov Date: Thu, 27 May 2021 23:28:58 +0500 Subject: [PATCH 1/2] adding Tarantool --- .env.example | 3 +++ docker-compose.yml | 12 ++++++++++++ tarantool/Dockerfile | 3 +++ tarantool/lua/.gitignore | 2 ++ 4 files changed, 20 insertions(+) create mode 100644 tarantool/Dockerfile create mode 100644 tarantool/lua/.gitignore diff --git a/.env.example b/.env.example index 0435413..c949de0 100644 --- a/.env.example +++ b/.env.example @@ -999,3 +999,6 @@ GEARMAN_MYSQL_TABLE=gearman_queue ### ELK Stack ################################################## ELK_VERSION=7.9.1 + +### Tarantool ################################################## +TARANTOOL_PORT=3301 diff --git a/docker-compose.yml b/docker-compose.yml index f0d828c..56dd363 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1977,3 +1977,15 @@ services: ZK_HOSTS: zookeeper:2181 networks: - backend + + +### tarantool ########################################### + tarantool: + build: ./tarantool + volumes: + - ${DATA_PATH_HOST}/tarantool:/var/lib/tarantool + - ./tarantool/lua:/opt/tarantool + ports: + - ${TARANTOOL_PORT}:3301 + networks: + - backend diff --git a/tarantool/Dockerfile b/tarantool/Dockerfile new file mode 100644 index 0000000..c8ed895 --- /dev/null +++ b/tarantool/Dockerfile @@ -0,0 +1,3 @@ +FROM tarantool/tarantool:2 + +LABEL maintainer="Alexander Palchikov " \ No newline at end of file diff --git a/tarantool/lua/.gitignore b/tarantool/lua/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/tarantool/lua/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file From 885e47d117c8afc8f4c27d66d32b05e361f8fc4c Mon Sep 17 00:00:00 2001 From: AxelPAL Date: Wed, 2 Jun 2021 15:20:22 +0500 Subject: [PATCH 2/2] added tarantool admin service --- .env.example | 1 + DOCUMENTATION/content/documentation/index.md | 23 ++++++++++++++++++++ docker-compose.yml | 6 +++++ tarantool-admin/Dockerfile | 3 +++ 4 files changed, 33 insertions(+) create mode 100644 tarantool-admin/Dockerfile diff --git a/.env.example b/.env.example index c949de0..13bc982 100644 --- a/.env.example +++ b/.env.example @@ -1002,3 +1002,4 @@ ELK_VERSION=7.9.1 ### Tarantool ################################################## TARANTOOL_PORT=3301 +TARANTOOL_ADMIN_PORT=8002 diff --git a/DOCUMENTATION/content/documentation/index.md b/DOCUMENTATION/content/documentation/index.md index 677402a..701b3fa 100644 --- a/DOCUMENTATION/content/documentation/index.md +++ b/DOCUMENTATION/content/documentation/index.md @@ -1467,8 +1467,31 @@ docker-compose up -d mosquitto 5 - Publish: `mqtt pub -t 'test' -h localhost -p 9001 -C 'ws' -m 'Hello!'` +
+ +## Use Tarantool (+ Admin panel) +1 - Configure Tarantool Port and Tarantool Admin Port using environment variables: `TARANTOOL_PORT` and `TARANTOOL_ADMIN_PORT`. Default ports are 3301 and 8002. +2 - Run the Tarantool and Tarantool Admin tool using `docker-compose up`command: + +```bash +docker-compose up -d tarantool tarantool-admin +``` + +3 - You can open admin tool visiting localhost:8002 + +4 - There you should set `Hostname` with the value `tarantool` + +5 - After that your tarantool data will be available inside admin panel. + +6 - Also you can connect to tarantool server in console mode with this command: + +```bash +docker-compose exec tarantool console +``` + +7 - There you can operate with tarantool database ([official documentation](https://www.tarantool.io/en/doc/latest/) can be helpful).
diff --git a/docker-compose.yml b/docker-compose.yml index 56dd363..62c3bcf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1989,3 +1989,9 @@ services: - ${TARANTOOL_PORT}:3301 networks: - backend + tarantool-admin: + build: ./tarantool-admin + ports: + - ${TARANTOOL_ADMIN_PORT}:80 + networks: + - backend \ No newline at end of file diff --git a/tarantool-admin/Dockerfile b/tarantool-admin/Dockerfile new file mode 100644 index 0000000..1bff4a6 --- /dev/null +++ b/tarantool-admin/Dockerfile @@ -0,0 +1,3 @@ +FROM quay.io/basis-company/tarantool-admin + +LABEL maintainer="Alexander Palchikov " \ No newline at end of file