-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (59 loc) · 1.85 KB
/
docker-compose.yml
File metadata and controls
59 lines (59 loc) · 1.85 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
webapp:
container_name: webapp
build:
context: ./docker/webapp
args:
PHP_INI_ENV: ${PHP_INI_ENV:-development}
TZ: ${APP_TZ:-Asia/Tokyo}
volumes:
- .:/var/www/html/connect-cms
ports:
- "80:80"
depends_on:
db:
condition: service_started
environment:
TZ: ${APP_TZ:-Asia/Tokyo}
DUSK_DRIVER_URL: ${DUSK_DRIVER_URL:-http://dusk:4444/wd/hub}
db:
container_name: db
image: ${MYSQL_IMAGE:-mysql:8}
ports:
- "3306:3306"
restart: always
volumes:
- ./docker/db/mysql_data:/var/lib/mysql
- ./docker/db/initdb.d:/docker-entrypoint-initdb.d:ro
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-root-secret}
MYSQL_USER: ${DB_USERNAME:-app}
MYSQL_PASSWORD: ${DB_PASSWORD:-secret}
MYSQL_DATABASE: ${DB_DATABASE:-connect}
MYSQL_TCP_PORT: ${DB_PORT:-3306}
TZ: ${APP_TZ:-Asia/Tokyo}
mailhog:
container_name: mailhog
image: mailhog/mailhog
ports:
- "8025:8025"
dusk:
container_name: dusk
image: selenium/standalone-chrome:latest
restart: unless-stopped
shm_size: 2g
profiles:
- dusk
ports:
- "${DUSK_DRIVER_PORT:-4444}:4444"
- "${DUSK_VNC_PORT:-5900}:5900"
- "${DUSK_NOVNC_PORT:-7900}:7900"
environment:
DUSK_DRIVER_PORT: ${DUSK_DRIVER_PORT:-4444}
SE_ENABLE_VNC: "true"
SE_VNC_NO_PASSWORD: "1"
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:4444/wd/hub/status"]
interval: 10s
timeout: 5s
retries: 5