diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..7de0bfb2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,41 @@ +version: '3.8' + +name: whisper_money + +services: + mysql: + image: mysql:8.0 + container_name: whisper_money_mysql + restart: unless-stopped + environment: + MYSQL_DATABASE: whisper_money + MYSQL_ROOT_PASSWORD: root + MYSQL_PASSWORD: password + MYSQL_USER: whisper_money + ports: + - "3306:3306" + volumes: + - mysql_data:/var/lib/mysql + healthcheck: + test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] + interval: 10s + timeout: 5s + retries: 5 + + redis: + image: redis:7-alpine + container_name: whisper_money_redis + restart: unless-stopped + ports: + - "6380:6379" + volumes: + - redis_data:/data + healthcheck: + test: ["CMD", "redis-cli", "ping"] + interval: 10s + timeout: 5s + retries: 5 + +volumes: + mysql_data: + redis_data: diff --git a/package-lock.json b/package-lock.json index 05b3fcae..7be5b652 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "react-starter-kit", + "name": "whisper_money", "lockfileVersion": 3, "requires": true, "packages": {