forked from Qovery/Replibyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-mysql.yml
More file actions
33 lines (32 loc) · 852 Bytes
/
docker-compose-mysql.yml
File metadata and controls
33 lines (32 loc) · 852 Bytes
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
version: '3'
services:
source-mysql:
platform: linux/x86_64
image: mysql:8
restart: always
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-u', 'root', '--password=password']
timeout: 45s
interval: 10s
retries: 10
environment:
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./db/mysql:/docker-entrypoint-initdb.d
ports:
- 3306:3306
dest-mysql:
platform: linux/x86_64
image: mysql:8
restart: always
command: --default-authentication-plugin=mysql_native_password
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-u', 'root', '--password=password']
timeout: 45s
interval: 10s
retries: 10
environment:
- MYSQL_ROOT_PASSWORD=password
ports:
- 3307:3306