-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
62 lines (57 loc) · 1.64 KB
/
docker-compose.dev.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
services:
php:
build:
context: ./
target: frankenphp_dev
volumes:
- ./:/app
- /app/var
- ./frankenphp/Caddyfile:/etc/caddy/Caddyfile:ro
- ./frankenphp/conf.d/app.dev.ini:/usr/local/etc/php/conf.d/app.dev.ini:ro
environment:
MERCURE_EXTRA_DIRECTIVES: demo
MERCURE_PUBLIC_URL: http://php.oas-default/.well-known/mercure
# See https://xdebug.org/docs/all_settings#mode
XDEBUG_MODE: "${XDEBUG_MODE:-off}"
extra_hosts:
# Ensure that host.docker.internal is correctly defined on Linux
- host.docker.internal:host-gateway
tty: true
consumer:
build:
context: ./
target: frankenphp_dev
volumes:
- ./:/app
- /app/var
- ./frankenphp/conf.d/app.dev.ini:/usr/local/etc/php/conf.d/app.dev.ini:ro
environment:
MERCURE_EXTRA_DIRECTIVES: demo
MERCURE_PUBLIC_URL: http://php.oas-default/.well-known/mercure
# See https://xdebug.org/docs/all_settings#mode
XDEBUG_MODE: "${XDEBUG_MODE:-off}"
MAILER_DSN: "${MAILER_DSN:-smtp://mailer:1025}"
extra_hosts:
# Ensure that host.docker.internal is correctly defined on Linux
- host.docker.internal:host-gateway
tty: true
###> doctrine/doctrine-bundle ###
database:
ports: !reset []
###< doctrine/doctrine-bundle ###
###> symfony/mailer ###
mailer:
image: axllent/mailpit
restart: unless-stopped
#ports:
# - "1025"
# - "8025"
environment:
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
###< symfony/mailer ###
###> symfony/mercure-bundle ###
# mercure:
# ports:
# - "80"
###< symfony/mercure-bundle ###