-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
52 lines (47 loc) · 1.01 KB
/
docker-compose.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
version: "3.7"
services:
console:
image: craftcms/cli:8.2-dev
env_file: .env
environment:
XDEBUG_CONFIG: client_host=host.docker.internal
depends_on:
redis:
condition: service_healthy
volumes:
- .:/app
command: php craft queue/listen
web:
image: craftcms/nginx:8.2-dev
ports:
- 8080:8080
env_file: .env
environment:
XDEBUG_CONFIG: client_host=host.docker.internal
depends_on:
redis:
condition: service_healthy
volumes:
- .:/app
db:
image: postgres:15.4-alpine
ports:
- 54322:5432
environment:
POSTGRES_DB: craftcms
POSTGRES_USER: craftcms
POSTGRES_PASSWORD: changeme
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "craftcms", "-d", "craftcms"]
interval: 5s
retries: 3
redis:
image: redis:5-alpine
ports:
- 6379:6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
volumes:
db_data: