-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run with docker compose which do not export mysql, redis(-cluster). #27
Comments
I encountered Details
|
@Dot-Liu Thanks, I also noticed that error I have to hard-coded the actual IP of And I also have to manually fix the redis cluster problems via use If the HOST accepts hostname, then it would work for cluster-redis:
container_name: cluster-redis
image: eolinker/cluster-redis:6.2.7
hostname: cluster-redis
privileged: true
restart: always
networks:
- apinto
ports:
- 7201
- 7202
- 7203
- 7204
- 7205
- 7206
environment:
- REDIS_PWD=123456
- PORT=7201
# - HOST=localhost
# - HOST=cluster-redis
- HOST=192.168.32.3
volumes:
- ./redis-cluster/data:/usr/local/cluster_redis/data
|
Except for the Host configuration of Redis, it is not recommended to change the default configuration in the All other configurations are set by default. |
I am new to apinto, and from docs https://help.eolink.com/tutorial/Apinto/c-1406, it seems |
The apinto-gateway needs to be deployed separately. We suggest deploying it on two servers to avoid resource contention and performance degradation. |
Then how to connect There are some limitation or shortcomings for the example docker-compose.yml on https://help.eolink.com/tutorial/Apinto/c-1406 IMO.
And I also noticed the image of redis cluster is named |
You can refer to this tutorial: https://help.eolink.com/tutorial/Apinto/c-1365.
|
I found the Update |
This requires the Redis version to be 7. x, and we have not conducted compatibility testing on the 7. x version of Redis yet, so it should not work now. |
@Dot-Liu Hi, I build a Could you update the |
I have reviewed the issue you mentioned and it is indeed a good suggestion, but we need to take some time to verify and avoid compatibility issues with old users due to upgrades. This will take some time, and we will schedule a replacement. Thank you for your suggestion. |
Hi, it's about 2 years of redis 7 release. Could we update apinto/apinto-dashboard to support redis 7 which is compatible backward with old redis like 5.x or 6.x. It should be easy and not a lot of changes. |
Okay, we will process and verify it within this week. If there are no issues, we will deploy the tutorial together this week. |
The issue has been resolved, please update to version v3.3.3 |
@Dot-Liu Thanks, I tried the following
version: '3'
services:
apinto-gateway:
image: eolinker/apinto-gateway:latest
tty: true
privileged: true
restart: unless-stopped
ports:
- 8099:8099
- 9400:9400
- 9401:9401
volumes:
- ./data:/var/lib/apinto
- ./log:/var/log/apinto
- ./config.yml:/etc/apinto/config.yml
apinto-dashboard:
image: eolinker/apinto-dashboard:latest
privileged: true
restart: unless-stopped
ports:
- "38080:8080"
depends_on:
- mysql
- redis_cluster
environment:
- MYSQL_USER_NAME=root
- MYSQL_PWD=123456
- MYSQL_IP=apinto_mysql
- MYSQL_PORT=3306
- MYSQL_DB="apinto"
- ERROR_DIR=/apinto-dashboard/work/logs
- ERROR_FILE_NAME=error.log
- ERROR_LOG_LEVEL=info
- ERROR_EXPIRE=7d
- ERROR_PERIOD=day
- REDIS_ADDR=redis_cluster:7201,redis_cluster:7202,redis_cluster:7203,redis_cluster:7204,redis_cluster:7205,redis_cluster:7206
- REDIS_PWD=123456
volumes:
- ./work:/apinto-dashboard/work
mysql:
image: mysql:5.7.34
privileged: true
restart: unless-stopped
container_name: apinto_mysql
hostname: apinto_mysql
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=apinto
volumes:
- ./mysql:/var/lib/mysql
redis_cluster:
image: eolinker/cluster-redis:7.2.4
hostname: redis_cluster
privileged: true
restart: unless-stopped
container_name: redis_cluster
ports:
- 7201-7206
- 17201-17206
environment:
- REDIS_PWD=123456
- PORT=7201
- HOST=redis_cluster
volumes:
- ./redis:/usr/local/cluster_redis/data
version: 2
client:
advertise_urls:
- http://apinto-gateway:9400
listen_urls:
- http://0.0.0.0:9400
gateway:
advertise_urls:
- http://apinto-gateway:8099
listen_urls:
- http://0.0.0.0:8099
peer:
listen_urls:
- http://0.0.0.0:9401
advertise_urls:
- http://apinto-gateway:9401 |
I found the If I changed the cmd using Use the default cmd/entrypoint without
Then the final docker-compose.yml file I used is the following. docker-compose.ymlversion: '3'
services:
apinto-gateway:
image: eolinker/apinto-gateway:latest
# tty: true
restart: unless-stopped
ports:
- 8099:8099
- 9400:9400
- 9401:9401
volumes:
- ./data:/var/lib/apinto
- ./log:/var/log/apinto
- ./config.yml:/etc/apinto/config.yml
entrypoint: ["/bin/sh", "-c", "./start.sh"]
apinto-dashboard:
image: eolinker/apinto-dashboard:latest
restart: unless-stopped
ports:
- "38080:8080"
depends_on:
- mysql
- redis_cluster
environment:
- MYSQL_USER_NAME=root
- MYSQL_PWD=123456
- MYSQL_IP=mysql
- MYSQL_PORT=3306
- MYSQL_DB="apinto"
- ERROR_DIR=/apinto-dashboard/work/logs
- ERROR_FILE_NAME=error.log
- ERROR_LOG_LEVEL=info
- ERROR_EXPIRE=7d
- ERROR_PERIOD=day
- REDIS_ADDR=redis_cluster:7201,redis_cluster:7202,redis_cluster:7203,redis_cluster:7204,redis_cluster:7205,redis_cluster:7206
- REDIS_PWD=123456
volumes:
- ./work:/apinto-dashboard/work
mysql:
image: mysql:5.7.34
restart: unless-stopped
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_DATABASE=apinto
volumes:
- ./mysql:/var/lib/mysql
redis_cluster:
image: eolinker/cluster-redis:7.2.4
restart: unless-stopped
ports:
- 7201-7206
- 17201-17206
environment:
- REDIS_PWD=123456
- PORT=7201
- HOST=redis_cluster
volumes:
- ./redis:/usr/local/cluster_redis/data |
Yes, versions of Apintos above 0.15 require the addition of |
Description
Hi, I read the doc about running with docker-compose, but I noticed that some service like mysql, redis(-cluster) are exported to the host which I believe is not best practise due to port conflicts and also not required.
So, I tried to update my own version of docker-compose. But the following docker-compose.yml do not working.
It failed with the following errors, maybe redis(-cluster) or mysql problems.
I do not familar with redis-cluster, could I replace the cluster version to normal redis service and how to do it?
The text was updated successfully, but these errors were encountered: