This repository was archived by the owner on Aug 8, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathcompose.yml
More file actions
113 lines (111 loc) · 2.94 KB
/
Copy pathcompose.yml
File metadata and controls
113 lines (111 loc) · 2.94 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: sw5
services:
shopware:
build: shopware-dockerized
restart: always
environment:
DB_PASSWORD: ${MARIADB_ROOT_PASSWORD:-password}
VALKEY_PASSWORD: ${VALKEY_PASSWORD:-password}
TZ: Europe/Berlin
ports:
- "8080:80"
volumes:
- sw5-shopware-data:/var/www/html:rw
networks: [sw5-network]
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost" ]
start_interval: 3s
start_period: 5s
interval: 1s
timeout: 3s
retries: 10
depends_on:
database:
condition: service_healthy
valkey:
condition: service_healthy
elasticsearch:
condition: service_healthy
valkey:
image: valkey/valkey:alpine
restart: always
command:
- "--maxmemory-policy"
- "volatile-lru"
- "--save"
- ""
- "--appendonly"
- "no"
- "--requirepass"
- "${VALKEY_PASSWORD:-password}"
networks: [sw5-network]
healthcheck:
test: [ "CMD-SHELL", "valkey-cli -a '${VALKEY_PASSWORD:-password}' ping | grep PONG" ]
start_interval: 3s
start_period: 5s
interval: 1s
timeout: 3s
retries: 10
elasticsearch:
image: elasticsearch:7.17.28
restart: always
environment:
discovery.type: single-node
ES_JAVA_OPTS: -Xms512m -Xmx512m
networks: [sw5-network]
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9200/_cat/health" ]
start_interval: 5s
start_period: 10s
interval: 5s
timeout: 5s
retries: 10
database:
image: mariadb:lts
restart: always
environment:
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD:-password}
MARIADB_DATABASE: shopware
TZ: Europe/Berlin
command:
- --sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_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=32M
- --innodb_buffer_pool_size=1024M
- --innodb_buffer_pool_instances=1
- --group_concat_max_len=320000
- --max_binlog_size=512M
- --binlog_expire_logs_seconds=28800
- --max_connections=256
- --max_allowed_packet=64M
volumes:
- sw5-database-data:/var/lib/mysql:rw
networks: [sw5-network]
healthcheck:
test: [ "CMD", "mariadb-admin" ,"ping", "-h", "localhost", "-p${MARIADB_ROOT_PASSWORD:-password}" ]
start_interval: 3s
start_period: 10s
interval: 5s
timeout: 1s
retries: 10
phpmyadmin:
image: phpmyadmin:latest
environment:
PMA_HOST: database
PMA_USER: root
PMA_PASSWORD: ${MARIADB_ROOT_PASSWORD:-password}
ports:
- "80:80"
networks: [sw5-network]
depends_on:
database:
condition: service_healthy
networks:
sw5-network:
driver: bridge
volumes:
sw5-shopware-data:
sw5-database-data: