-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 999 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (37 loc) · 999 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
version: '3.7'
services:
db:
image: mysql:5.7
container_name: mysql_host
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test_database
MYSQL_USER: docker
MYSQL_PASSWORD: docker
TZ: 'Asia/Tokyo'
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
volumes:
- ./db/data:/var/lib/mysql
- ./db/my.cnf:/etc/mysql/conf.d/my.cnf
- ./db/sql:/docker-entrypoint-initdb.d
ports:
- 3306:3306
codeceptjs:
build:
context: ./docker/
args:
- TZ=${TZ}
- CODECEPTJS_VERSION=${CODECEPTJS_VERSION:-3.0.7}
environment:
HOST_PWD: "${PWD:-.}"
REPORT_DIR: "${REPORT_DIR:-./reports}"
NODE_OPTIONS: "--max-old-space-size=6144"
volumes:
- "./conf:/tests/conf"
- "${HOST_PWD:-.}/src:/tests"
- "${REPORT_DIR:-./reports}:/tests/reports"
mem_limit: 6g
memswap_limit: 6g
working_dir: /tests
network_mode: "host"
init: true