-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (54 loc) · 1.57 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
services:
app:
image: sylius/standard:1.11-traditional-alpine
environment:
APP_ENV: "dev"
DATABASE_URL: "mysql://root:mysql@mysql/sylius_%kernel.environment%?charset=utf8mb4"
# DATABASE_URL: "pgsql://root:postgres@postgres/sylius_%kernel.environment%?charset=utf8" # When using postgres
PHP_DATE_TIMEZONE: "Europe/Rome"
PHP_VERSION: "8.1"
volumes:
- ./:/app:delegated
- ./.docker/php/php.ini:/etc/php8/php.ini:delegated
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf:delegated
ports:
- 8080:80
depends_on:
- mysql
networks:
- sylius
mysql:
image: mysql:8.0
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: mysql
volumes:
- mysql-data:/var/lib/mysql:rw
networks:
- sylius
elasticsearch:
build:
context: ./.docker/elasticsearch
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "xpack.security.enabled=false"
volumes:
- es-data:/usr/share/elasticsearch/data:rw
ulimits:
memlock:
soft: -1
hard: -1
networks:
- sylius
elastichq:
image: elastichq/elasticsearch-hq
networks:
- sylius
networks:
sylius:
driver: bridge
volumes:
mysql-data:
es-data: