-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
113 lines (107 loc) · 2.81 KB
/
docker-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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: "3.7"
services:
nginx:
image: ghcr.io/flagbit/shopware/6.4/nginx/production:0.1.1
platform: linux/amd64
depends_on:
- php-fpm
environment:
- FASTCGI_BACKEND='php-fpm:9000'
ports:
- "8080:8080"
volumes:
- ./:/srv/www
networks:
- "shopware"
php-fpm:
image: ghcr.io/flagbit/shopware/6.5/php-fpm/8.2/development:0.2.0
user: $USER_ID
depends_on:
- mysql
environment:
- DATABASE_URL=mysql://app:app@mysql:3306/shopware
- APP_URL=http://localhost:8080
- INSTANCE_ID=
- SHOPWARE_ES_ENABLED=0
- SHOPWARE_ES_HOSTS=elasticsearch:9200
- SHOPWARE_ES_INDEXING_ENABLED=0
- SHOPWARE_ES_INDEX_PREFIX=sw
- SHOPWARE_ES_THROW_EXCEPTION=0
- SHOPWARE_CDN_STRATEGY_DEFAULT=id
- SQL_SET_DEFAULT_SESSION_VARIABLES=0
- MAILER_URL=smtp://mailhog:1025?encryption=&auth_mode=
- PUPPETEER_SKIP_DOWNLOAD=true
- XDEBUG_MODE=${XDEBUG_MODE:-off}
- PHP_IDE_CONFIG=serverName=localhost
- LOCK_DSN=flock
extra_hosts:
- host.docker.internal:${CUSTOM_HOST_GATEWAY:-host-gateway}
volumes:
- ./:/srv/www
- ./.npm:/.npm
networks:
- "shopware"
healthcheck:
test: curl --fail -s http://localhost:8080/ || exit 1
interval: 1m
timeout: 10s
retries: 3
mysql:
image: docker.io/library/mysql:8.0.25
platform: linux/amd64
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=shopware
- MYSQL_USER=app
- MYSQL_PASSWORD=app
- MYSQL_TCP_PORT=3306
command:
[
mysqld,
--log_bin_trust_function_creators=1,
--default-authentication-plugin=mysql_native_password,
"--sql-mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION",
--group-concat-max-len=32000,
]
ports:
- "3306:3306"
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
interval: 5s
timeout: 2s
retries: 3
networks:
- "shopware"
elasticsearch:
image: docker.io/elastic/elasticsearch:7.17.3
platform: linux/amd64
environment:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- discovery.type=single-node
ports:
- "9200:9200"
healthcheck:
test:
[
"CMD-SHELL",
"curl --silent --fail localhost:9200/_cluster/health || exit 1",
]
interval: 30s
timeout: 30s
retries: 3
networks:
- "shopware"
mailhog:
image: docker.io/mailhog/mailhog:v1.0.0
platform: linux/amd64
healthcheck:
test: curl --fail -s http://localhost:8025/ || exit 1
interval: 1m
timeout: 10s
retries: 3
ports:
- "8025:8025"
networks:
- "shopware"
networks:
shopware: