-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
39 lines (38 loc) · 1.33 KB
/
compose.yml
File metadata and controls
39 lines (38 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
services:
web:
image: ghcr.io/shopwarelabs/devcontainer/base-slim:8.2
environment:
APP_URL: http://localhost:8000
DATABASE_URL: mysql://root:root@database/shopware
volumes:
- .:/var/www/html
depends_on:
database:
condition: service_healthy
database:
image: mariadb:latest
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: shopware
command:
- --sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
- --log_bin_trust_function_creators=1
- --binlog_cache_size=16M
- --key_buffer_size=0
- --join_buffer_size=1024M
- --innodb_log_file_size=128M
- --innodb_buffer_pool_size=1024M
- --innodb_buffer_pool_instances=1
- --group_concat_max_len=320000
- --default-time-zone=+00:00
- --max_binlog_size=512M
- --binlog_expire_logs_seconds=86400
tmpfs:
- /var/lib/mysql
healthcheck:
test: [ "CMD", "mariadb-admin" ,"ping", "-h", "localhost", "-proot" ]
start_interval: 3s
start_period: 10s
interval: 5s
timeout: 1s
retries: 10