We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题描述 使用docker安装包错
walle-python | self._get_server_information() walle-python | File "/usr/local/lib/python2.7/site-packages/pymysql/connections.py", line 985, in _get_server_information walle-python | self.server_thread_id = struct.unpack('<I', data[i:i+4]) walle-python | struct.error: unpack requires a string argument of length 4 walle-python | Migration: [ fail ] walle-python | Server initialized for gevent.
docker-composer.yml
version: "2.2" services: web: image: alenx/walle-web:2.1 container_name: walle-nginx hostname: nginx-web ports: # 如果宿主机80端口被占用,可自行修改为其他port(>=1024) # 0.0.0.0:要绑定的宿主机端口:docker容器内端口80 - "8080:80" depends_on: - python networks: - walle-net restart: always
python: image: alenx/walle-python:2.1 container_name: walle-python hostname: walle-python env_file: # walle.env需和docker-compose在同级目录 - ./walle.env command: bash -c "cd /opt/walle_home/ && /bin/bash admin.sh migration && python waller.py" expose: - "5000" volumes: - /opt/walle_home/plugins/:/opt/walle_home/plugins/ - /opt/walle_home/codebase/:/opt/walle_home/codebase/ - /opt/walle_home/logs/:/opt/walle_home/logs/ - /root/.ssh:/root/.ssh/ depends_on: - db networks: - walle-net restart: always
db: image: mysql container_name: walle-mysql hostname: walle-mysql env_file: - ./walle.env command: [ '--default-authentication-plugin=mysql_native_password', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci'] ports: - "3307:33060" expose: - "33060" volumes: - /data/walle/mysql:/var/lib/mysql networks: - walle-net restart: always environment: MYSQL_ROOT_PASSWORD: walle
networks: walle-net: driver: bridge
The text was updated successfully, but these errors were encountered:
henyihanwobushi
meolu
aSmallPing
ZouHongxue
No branches or pull requests
问题描述
使用docker安装包错
walle-python | self._get_server_information()
walle-python | File "/usr/local/lib/python2.7/site-packages/pymysql/connections.py", line 985, in _get_server_information
walle-python | self.server_thread_id = struct.unpack('<I', data[i:i+4])
walle-python | struct.error: unpack requires a string argument of length 4
walle-python | Migration: [ fail ]
walle-python | Server initialized for gevent.
docker-composer.yml
docker version: 18.06.0+
docker-compose version: 1.17.2+
OpenSSL version: OpenSSL 1.1.0h
version: "2.2"
services:
web:
image: alenx/walle-web:2.1
container_name: walle-nginx
hostname: nginx-web
ports:
# 如果宿主机80端口被占用,可自行修改为其他port(>=1024)
# 0.0.0.0:要绑定的宿主机端口:docker容器内端口80
- "8080:80"
depends_on:
- python
networks:
- walle-net
restart: always
python:
image: alenx/walle-python:2.1
container_name: walle-python
hostname: walle-python
env_file:
# walle.env需和docker-compose在同级目录
- ./walle.env
command: bash -c "cd /opt/walle_home/ && /bin/bash admin.sh migration && python waller.py"
expose:
- "5000"
volumes:
- /opt/walle_home/plugins/:/opt/walle_home/plugins/
- /opt/walle_home/codebase/:/opt/walle_home/codebase/
- /opt/walle_home/logs/:/opt/walle_home/logs/
- /root/.ssh:/root/.ssh/
depends_on:
- db
networks:
- walle-net
restart: always
db:
image: mysql
container_name: walle-mysql
hostname: walle-mysql
env_file:
- ./walle.env
command: [ '--default-authentication-plugin=mysql_native_password', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
ports:
- "3307:33060"
expose:
- "33060"
volumes:
- /data/walle/mysql:/var/lib/mysql
networks:
- walle-net
restart: always
environment:
MYSQL_ROOT_PASSWORD: walle
networks:
walle-net:
driver: bridge
The text was updated successfully, but these errors were encountered: