-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (55 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
58 lines (55 loc) · 1.33 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
services:
console:
build:
context: ./docker
dockerfile: cli.Dockerfile
args:
WWWUSER: "${WWWUSER:-1000}"
WWWGROUP: "${WWWGROUP:-1000}"
image: craft-8.2/cli
env_file: .env
environment:
XDEBUG_CONFIG: client_host=host.docker.internal
depends_on:
mysql:
condition: service_healthy
volumes:
- .:/app
command: php craft queue/listen
web:
build:
context: ./docker
dockerfile: web.Dockerfile
args:
WWWUSER: "${WWWUSER:-1000}"
WWWGROUP: "${WWWGROUP:-1000}"
image: craft-8.2/app
ports:
- "8080:8080"
- "5173:5173"
env_file: .env
environment:
XDEBUG_CONFIG: client_host=host.docker.internal
depends_on:
mysql:
condition: service_healthy
volumes:
- .:/app
mysql:
image: mysql:8.0.37
ports:
- ${FORWARDED_DB_PORT:-3306}:3306
environment:
MYSQL_ROOT_PASSWORD: "${CRAFT_DB_PASSWORD}"
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: "${CRAFT_DB_DATABASE}"
MYSQL_USER: "${CRAFT_DB_USER}"
MYSQL_PASSWORD: "${CRAFT_DB_PASSWORD}"
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- "db_data:/var/lib/mysql"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p${CRAFT_DB_PASSWORD}"]
interval: 5s
volumes:
db_data: