-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 1.03 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
services:
db:
image: mariadb:11
restart: always
ports:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: flute
MYSQL_DATABASE: flute
MYSQL_USER: flute
MYSQL_PASSWORD: flute
volumes:
- db_data:/var/lib/mysql
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
php:
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
APP_ENV: production
PHP_OPCACHE_ENABLE: 1
SSL_MODE: mixed
ports:
- "80:80"
volumes:
- ./config:/var/www/html/config
- ./public/assets:/var/www/html/public/assets
- ./public/uploads:/var/www/html/public/uploads
- ./storage:/var/www/html/storage
- ./app/Modules:/var/www/html/app/Modules
- ./app/Themes:/var/www/html/app/Themes
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
db_data:
driver: local