Add Docker Compose setup for MySQL and Redis services
This commit is contained in:
parent
2eaad3204c
commit
0dad9366bb
|
|
@ -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:
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "react-starter-kit",
|
||||
"name": "whisper_money",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue