-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 1.09 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
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: fundtran-mysql
environment:
MYSQL_ROOT_PASSWORD: fundtran_admin # Matches the admin user we created
MYSQL_USER: fundtran_dev # Default less-privileged user
MYSQL_PASSWORD: fundtran_dev
MYSQL_DATABASE: fundtran_db_dev
ports:
- '3306:3306'
volumes:
- mysql_data:/var/lib/mysql
- ./mysql-init:/docker-entrypoint-initdb.d
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
interval: 5s
timeout: 10s
retries: 5
command:
--default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci --max_connections=200 --innodb_buffer_pool_size=1G
adminer:
image: adminer
container_name: fundtran-adminer
ports:
- '8080:8080'
depends_on:
mysql:
condition: service_healthy
volumes:
mysql_data: