-
Notifications
You must be signed in to change notification settings - Fork 99
/
docker-compose.mysql.yml
54 lines (52 loc) · 1.3 KB
/
docker-compose.mysql.yml
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
volumes:
mysql-database:
driver: local
services:
ec-cube:
command: apache2-foreground
entrypoint: /wait-for-mysql.sh
depends_on:
- mysql
environment:
TZ: Asia/Tokyo
PHP_POST_MAX_SIZE: 10M
PHP_UPLOAD_MAX_FILESIZE: 10M
PHP_LOG_ERRORS: "On"
PHP_ERROR_REPORTING: "E_ALL"
PHP_ERROR_LOG: "/proc/self/fd/2"
# EC-CUBE2 Config
HTTP_URL: https://localhost:4430/
HTTPS_URL: https://localhost:4430/
ROOT_URLPATH: /
DOMAIN_NAME: ~
DB_TYPE: mysql
DB_USER: eccube_db_user
DB_PASSWORD: password
DB_SERVER: mysql
DB_NAME: eccube_db
DB_PORT: ~
ADMIN_DIR: admin/
ADMIN_FORCE_SSL: 'false'
ADMIN_ALLOW_HOSTS: 'a:0:{}'
AUTH_MAGIC: ~
PASSWORD_HASH_ALGOS: sha256
mysql:
image: mysql:8.4
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --default-time-zone=+09:00
ports:
- '13306:3306'
volumes:
- mysql-database:/var/lib/mysql
environment:
TZ: Asia/Tokyo
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: eccube_db
MYSQL_USER: eccube_db_user
MYSQL_PASSWORD: password
networks:
- backend
healthcheck:
test: mysqladmin ping
interval: 3s
timeout: 3s
retries: 3