-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.override.yml
More file actions
82 lines (82 loc) · 3.79 KB
/
compose.override.yml
File metadata and controls
82 lines (82 loc) · 3.79 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
services:
php:
user: ${DOCKER_USER:-1000:1000}
depends_on:
mysql:
condition: service_healthy
environment:
# You can move these environment variables to your .env.local file
# APP_ENV: prod
APP_ENV: ${ENV:-prod}
APP_SECRET: EDITME
DATABASE_URL: "mysql://root@mysql/sylius_%kernel.environment%"
MAILER_DSN: smtp://mailhog:1025
MESSENGER_TRANSPORT_DSN: doctrine://default
SYLIUS_MESSENGER_TRANSPORT_MAIN_DSN: doctrine://default
SYLIUS_MESSENGER_TRANSPORT_MAIN_FAILED_DSN: doctrine://default?queue_name=main_failed
SYLIUS_MESSENGER_TRANSPORT_CATALOG_PROMOTION_REMOVAL_DSN: doctrine://default?queue_name=catalog_promotion_removal
SYLIUS_MESSENGER_TRANSPORT_CATALOG_PROMOTION_REMOVAL_FAILED_DSN: doctrine://default?queue_name=catalog_promotion_removal_failed
SYLIUS_MESSENGER_TRANSPORT_PAYMENT_REQUEST_DSN: sync://
SYLIUS_MESSENGER_TRANSPORT_PAYMENT_REQUEST_FAILED_DSN: sync://
PHP_DATE_TIMEZONE: ${PHP_DATE_TIMEZONE:-UTC}
BEHAT_BASE_URL: https://nginx
PANTHER_NO_SANDBOX: 1
PANTHER_CHROME_BINARY: /usr/bin/chromium-browser
PANTHER_CHROME_DRIVER_BINARY: /usr/bin/chromedriver
PANTHER_EXTERNAL_BASE_URI: https://nginx
PANTHER_CHROME_ARGUMENTS: "--window-size=1200,1000 --headless --no-sandbox --ignore-certificate-errors --disable-web-security --disable-dev-shm-usage --disable-gpu --disable-infobars --disable-features=TranslateUI --disable-translate --disable-popup-blocking --disable-blink-features=AutomationControlled --disable-component-extensions-with-background-pages --disable-background-networking --disable-dev-tools --disable-extensions --disable-password-manager-leak-detection"
XDEBUG_MODE: debug
XDEBUG_CONFIG: >-
client_host=host.docker.internal
client_port=9003
idekey=PHPSTORM
xdebug.start_with_request=yes
# This should correspond to the server declared in PHPStorm `Preferences | Languages & Frameworks | PHP | Servers`
# Then PHPStorm will use the corresponding path mappings
PHP_IDE_CONFIG: serverName=sylius
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- .:/srv/sylius:rw,cached
# if you develop on Linux, you may use a bind-mounted host directory instead
# - ./var:/srv/sylius/var:rw
- ./public:/srv/sylius/public:rw,delegated
# if you develop on Linux, you may use a bind-mounted host directory instead
- ./public/media:/srv/sylius/public/media:rw
# - public-media:/srv/sylius/public/media:rw
# - ./../php-sdk/:/srv/php-sdk
mysql:
volumes:
- mysql-data:/var/lib/mysql:rw
ports:
- "3306:3306"
nginx:
environment:
DC: SD
WORKING_DIR: /srv/sylius/tests/Application
volumes:
- .:/srv/sylius:ro
- ./nginx/certs:/etc/nginx/certs
# if you develop on Linux, you may use a bind-mounted host directory instead
# - ./public/media:/srv/sylius/public/media:ro
ports:
- "80:80"
- "443:443"
nodejs:
image: node:${NODE_VERSION:-20}-alpine
user: ${DOCKER_USER:-1000:1000}
working_dir: /srv/sylius
entrypoint: [ "/bin/sh","-c" ]
command:
- |
cd tests/Application
yarn install
yarn build
volumes:
- .:/srv/sylius:rw,cached
- ./public:/srv/sylius/public:rw,delegated
mailhog:
ports:
- "8025:8025"
volumes:
mysql-data: