-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (52 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (52 loc) · 1.04 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
services:
app:
image: ghcr.io/performingdigital/php-nginx:8.5
working_dir: /app
healthcheck:
disable: true
environment:
NGINX_WEBROOT: /app/public
PHP_DISPLAY_ERRORS: 1
# HEALTHCHECK_PATH: /up
PHP_OPCACHE_ENABLE: 0
volumes:
- ".:/app"
depends_on:
- mysql
- redis
mysql:
image: "mysql:8"
environment:
MYSQL_ROOT_PASSWORD: "secret"
MYSQL_ROOT_HOST: "%"
MYSQL_DATABASE: "project"
MYSQL_USER: "project"
MYSQL_PASSWORD: "project"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
expose:
- "3306"
volumes:
- "./storage/backups:/root/backups"
- "data-mysql:/var/lib/mysql"
healthcheck:
test:
- CMD
- mysqladmin
- ping
- "-p${DB_PASSWORD}"
retries: 3
timeout: 5s
redis:
image: "redis:alpine"
volumes:
- "data-redis:/data"
healthcheck:
test:
- CMD
- redis-cli
- ping
retries: 3
timeout: 5s
volumes:
data-mysql:
data-redis: