-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (68 loc) 路 1.54 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (68 loc) 路 1.54 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
60
61
62
63
64
65
66
67
68
69
70
71
72
services:
app:
build: .
ports:
- "80:80"
environment:
- APP_ENV=production
- APP_KEY=${APP_KEY}
- APP_DEBUG=false
- APP_URL=http://localhost
- DB_CONNECTION=mysql
- DB_HOST=db
- DB_PORT=3306
- DB_DATABASE=cachet
- DB_USERNAME=cachet
- DB_PASSWORD=${DB_PASSWORD}
- CACHE_STORE=redis
- SESSION_DRIVER=redis
- QUEUE_CONNECTION=redis
- REDIS_CLIENT=predis
- REDIS_HOST=redis
- REDIS_PASSWORD=${REDIS_PASSWORD}
- REDIS_PORT=6379
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- storage_data:/var/www/html/storage
restart: unless-stopped
networks:
- cachet
db:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=cachet
- MYSQL_USER=cachet
- MYSQL_PASSWORD=${DB_PASSWORD}
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
restart: unless-stopped
networks:
- cachet
redis:
image: redis:7-alpine
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "auth", "${REDIS_PASSWORD}", "ping"]
timeout: 3s
retries: 5
restart: unless-stopped
networks:
- cachet
volumes:
mysql_data:
redis_data:
storage_data:
networks:
cachet:
driver: bridge