mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
This PR was merged into the master branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master <!-- see the comment below --> | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file --> | Related tickets | none | License | MIT Let's expand the development environment with Blackfire to enable faster performance testing Commits -------83e1b82[poc][feature][docker]Blackfirea39021dadd url argument and example on how to execute
66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
services:
|
|
app:
|
|
build:
|
|
context: .docker
|
|
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/Warsaw"
|
|
MAILER_URL: "smtp://mailhog:1025"
|
|
volumes:
|
|
- ./:/app:delegated
|
|
- ./.docker/dev/php.ini:/etc/php/8.0/fpm/php.ini:delegated
|
|
- ./.docker/dev/php.ini:/etc/php/8.0/cli/php.ini:delegated
|
|
ports:
|
|
- 80:80
|
|
depends_on:
|
|
- mysql
|
|
networks:
|
|
- sylius
|
|
|
|
mysql:
|
|
image: mysql:5.7
|
|
platform: linux/amd64
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: mysql
|
|
ports:
|
|
- 3306:3306
|
|
networks:
|
|
- sylius
|
|
|
|
# postgres:
|
|
# image: postgres:13-alpine
|
|
# environment:
|
|
# POSTGRES_USER: root
|
|
# POSTGRES_PASSWORD: postgres
|
|
# ports:
|
|
# - 5432:5432
|
|
# networks:
|
|
# - sylius
|
|
|
|
mailhog:
|
|
image: mailhog/mailhog
|
|
ports:
|
|
- 1025:1025 # SMTP
|
|
- 8025:8025 # UI
|
|
networks:
|
|
- sylius
|
|
|
|
blackfire:
|
|
image: blackfire/blackfire:2
|
|
environment:
|
|
BLACKFIRE_LOG_LEVEL: 4
|
|
BLACKFIRE_SERVER_ID: ~
|
|
BLACKFIRE_SERVER_TOKEN: ~
|
|
BLACKFIRE_CLIENT_ID: ~
|
|
BLACKFIRE_CLIENT_TOKEN: ~
|
|
BLACKFIRE_DISABLE_LEGACY_PORT: true
|
|
ports:
|
|
- 8307:8307
|
|
networks:
|
|
- sylius
|
|
|
|
networks:
|
|
sylius:
|
|
driver: bridge
|