diff --git a/.gitignore b/.gitignore index 98fe13f..3ee7d37 100755 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,6 @@ go.work # Logs *.log .cache/* + +# Local build binary +wx_service diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c916c6f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,27 @@ +services: + mysql: + image: mysql:8.0 + container_name: wx_service_mysql + restart: always + environment: + MYSQL_ROOT_PASSWORD: root_password + MYSQL_DATABASE: wx_service + ports: + - "3306:3306" + volumes: + - mysql_data:/var/lib/mysql + command: --default-authentication-plugin=mysql_native_password --innodb-buffer-pool-size=64M + + redis: + image: redis:7-alpine + container_name: wx_service_redis + restart: always + ports: + - "6379:6379" + volumes: + - redis_data:/data + command: redis-server --appendonly yes --maxmemory 64mb --maxmemory-policy allkeys-lru + +volumes: + mysql_data: + redis_data: