This repository was archived by the owner on Sep 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·64 lines (60 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
executable file
·64 lines (60 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3.9'
volumes:
mysql_mido:
services:
bot:
container_name: mido
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
environment:
- NODE_ENV=development
links:
- mysql_mido
env_file:
- .env
volumes:
- .:/app
ports:
- 5050:5000
mysql_mido:
container_name: mido-mysql
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=mido
- MYSQL_USER=mido
- MYSQL_PASSWORD=root
- MYSQL_PORT=3306
env_file:
- .env
volumes:
- mysql_mido:/var/lib/mysql
ports:
- '3308:3306'
restart: unless-stopped
stdin_open: true
command:
['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
timeout: 5s
retries: 10
mysql-backup:
image: fradelg/mysql-cron-backup
depends_on:
- mysql_mido
restart: always
volumes:
- ./backups:/backup
environment:
- MYSQL_USER=mdio
- MYSQL_PASS=root
- MYSQL_DB=mido
- CRON_TIME=0 0 * * *
- MYSQL_HOST=mysql_mido
- MYSQL_PORT=3306
- TIMEOUT=10s
- INIT_BACKUP=1
- MAX_BACKUPS=7