-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
32 lines (32 loc) · 895 Bytes
/
docker-compose.yaml
File metadata and controls
32 lines (32 loc) · 895 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
# optimized for macos
version: "3.7"
services:
mysql-local:
container_name: mysql-local
image: "mysql:8.0-debian"
command: >
--default-authentication-plugin=caching_sha2_password
--character-set-server=utf8mb4
--collation-server=utf8mb4_unicode_ci
restart: unless-stopped
networks:
- default
ports:
- "${MYSQL_HOST_PORT:-3306}:${MYSQL_CONT_PORT:-3306}"
expose:
- "${MYSQL_HOST_PORT:-3306}"
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD:-root}"
MYSQL_DATABASE: "${MYSQL_DATABASE:-devbook}"
MYSQL_USER: "${MYSQL_USERNAME:-user}"
MYSQL_PASSWORD: "${MYSQL_USER_PASSWORD:-password}"
MYSQL_ROOT_HOST: "%"
volumes:
- mysql_data:/var/lib/mysql
- ./platform/database:/docker-entrypoint-initdb.d
volumes:
mysql_data:
driver: local
networks:
default:
# driver: bridge