-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
98 lines (91 loc) · 5.24 KB
/
compose.yml
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
x-environment: &shopware
environment:
APP_ENV: prod
DATABASE_URL: 'mysql://shopware:shopware@database/shopware'
DATABASE_HOST: 'database'
APP_URL: 'http://localhost:8000'
APP_SECRET: 'test'
JWT_PRIVATE_KEY: 'LS0tLS1CRUdJTiBFTkNSWVBURUQgUFJJVkFURSBLRVktLS0tLQpNSUlGSERCT0Jna3Foa2lHOXcwQkJRMHdRVEFwQmdrcWhraUc5dzBCQlF3d0hBUUlFOE5rWmE0ck1PVUNBZ2dBCk1Bd0dDQ3FHU0liM0RRSUpCUUF3RkFZSUtvWklodmNOQXdjRUNQeHVabVIrWWV6QUJJSUV5QVVPM0pBcjV5K0QKTDRvTzRGM0JlL1Z1Slp5QlRPRFdQcU1BNzZ2SUF4K3lDUmZBTVIxRWw4MlNwRUdiSUZVSTA0VTRqUERTeER6aAoxd2dkemQyZHJSMjl2UCtKdjl3ekhjbDBib3g1dnd0ZmFxdEdFcjg0UnQ5aTl5aHpINkJ3MnZMQ21NQVNac0pPCjVrNEdERnhSTDhudWxTVXZtcjA1RUNnVEdQMndraXMzRThtRTU0Q3UrSlpLVzFwN0lkcmdJd3BSSWwwNUhLWVAKSFRGbGJaNURpb3dFelF3Qm42K25TbE40OUJneE1ZM1cxdkhrWTRDaVdZNUJTOENYcHoweGRvNnBzSTRuZ2dpLwpId2xBTVpDVGQvdFZnMW5VMkdRcGNRTkpPZm1TSW0xcWlNeGpSbE5iV2tIbmMvMkwya3AveWs5cFo4aTIwTFhrCnYxZHVHNUZvcl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6NnVIWjd3b1VQYXZXTG4KMldybHNIUmQ0S2wwNnpIdzVNelE2bVlqeDI5L2NINkNrbjNNcXVNQW9qTEE4alJLSGVxQ05OSUh2cnkwRnByUQoyaG5VUDdMZThlbU1FeUJtTzBGeHoyYVdsVEo4d3FmVDdMRUYyNVJOaERoNyswc3JJSC9RcnlpRHhVZnBvZTBpCkNLNUVpZVdHMXloeXhMMUZJU2JTVmIvRGZaWHo3NGYzMWp0VWpEaVJuWjF2U0UxNDNGKzdUaFV3alBra0pYcVEKQlFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg=='
PHP_SESSION_HANDLER: redis
PHP_SESSION_SAVE_PATH: 'tcp://cache:6379/1'
volumes:
- files:/var/www/html/files
- theme:/var/www/html/public/theme
- media:/var/www/html/public/media
- thumbnail:/var/www/html/public/thumbnail
- sitemap:/var/www/html/public/sitemap
services:
database:
image: mariadb:11.4
environment:
MARIADB_ROOT_PASSWORD: shopware
MARIADB_USER: shopware
MARIADB_PASSWORD: shopware
MARIADB_DATABASE: shopware
tmpfs:
- /var/lib/mysql
healthcheck:
test: [ "CMD", "mariadb-admin" ,"ping", "-h", "localhost", "-pshopware" ]
timeout: 20s
retries: 10
init-perm:
image: alpine
<<: *shopware
command: chown 82:82 /var/www/html/files /var/www/html/public/theme /var/www/html/public/media /var/www/html/public/thumbnail /var/www/html/public/sitemap
init:
image: local
<<: *shopware
build:
context: .
entrypoint: /setup
depends_on:
database:
condition: service_healthy
init-perm:
condition: service_completed_successfully
web:
image: local
<<: *shopware
build:
context: .
depends_on:
init:
condition: service_completed_successfully
ports:
- 8000:8000
worker:
image: local
<<: *shopware
restart: unless-stopped
build:
context: .
volumes_from:
- init
depends_on:
init:
condition: service_completed_successfully
entrypoint: [ "php", "bin/console", "messenger:consume", "async", "--time-limit=300", "--memory-limit=512M" ]
deploy:
replicas: 3
scheduled-task:
image: local
<<: *shopware
restart: unless-stopped
build:
context: .
volumes_from:
- init
depends_on:
init:
condition: service_completed_successfully
entrypoint: [ "php", "bin/console", "scheduled-task:run" ]
cache:
image: valkey/valkey:latest
volumes:
mysql-data:
files:
theme:
media:
thumbnail:
sitemap: