-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
39 lines (38 loc) · 951 Bytes
/
compose.yml
File metadata and controls
39 lines (38 loc) · 951 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
34
35
36
37
38
39
services:
database:
image: mysql:9.7.0
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=1
- MYSQL_DATABASE=script
command:
- mysqld
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_general_ci
- --sql-mode=
- --disable-log-bin
- --init-file=/etc/mysql/ext.d/init.sql
ports:
- 3306:3306
volumes:
- ./database/src:/var/lib/mysql
- ./database/etc/mysql/conf.d:/etc/mysql/conf.d:ro
- ./database/etc/mysql/ext.d:/etc/mysql/ext.d:ro
restart: always
script:
build:
context: ./script
dockerfile: ./docker.dev/Dockerfile
environment:
- DB_HOST=database
- DB_USER=root
- DB_PASSWORD=
- DB_NAME=script
- DB_CHARSET=utf8mb4
- DB_COLLATION=utf8mb4_general_ci
volumes:
- ./script/src:/app
- /app/node_modules
- /root/.cache
depends_on:
- database
restart: on-failure