-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.override.yaml
More file actions
80 lines (76 loc) · 2.44 KB
/
Copy pathcompose.override.yaml
File metadata and controls
80 lines (76 loc) · 2.44 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
# Development environment override
services:
api:
build:
context: ./api
target: frankenphp_dev
volumes:
- ./api:/app
# - /app/var
- ./api/var/log/api:/app/var/log:rw
- ./build/logs:/app/build/logs
- vendor_php:/app/vendor
# - cache_php:/app/cache
- ./api/frankenphp/Caddyfile:/etc/frankenphp/Caddyfile:ro
- ./api/frankenphp/conf.d/20-app.dev.ini:/usr/local/etc/php/app.conf.d/20-app.dev.ini:ro
# If you develop on Mac or Windows you can remove the vendor/ directory
# from the bind-mount for better performance by enabling the next line:
#- /app/vendor
environment:
FRANKENPHP_WORKER_CONFIG: watch
MERCURE_EXTRA_DIRECTIVES: demo
# 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
worker:
build:
context: ./api
target: frankenphp_dev
volumes:
- ./api:/app
- ./api/var/log/worker:/app/var/log:rw
# - /app/var
- vendor_worker:/app/vendor
# - cache_worker:/app/cache
- ./api/frankenphp/Caddyfile:/etc/frankenphp/Caddyfile:ro
- ./api/frankenphp/conf.d/20-app.dev.ini:/usr/local/etc/php/app.conf.d/20-app.dev.ini:ro
# If you develop on Mac or Windows you can remove the vendor/ directory
# from the bind-mount for better performance by enabling the next line:
#- /app/vendor
environment:
FRANKENPHP_WORKER_CONFIG: watch
MERCURE_EXTRA_DIRECTIVES: demo
# 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
pwa:
build:
context: ./pwa
target: dev
volumes:
- ./pwa:/srv/app
environment:
API_PLATFORM_CREATE_CLIENT_ENTRYPOINT: http://api
API_PLATFORM_CREATE_CLIENT_OUTPUT: .
# On Linux, you may want to comment the following line for improved performance
WATCHPACK_POLLING: "true"
###> doctrine/doctrine-bundle ###
database:
ports:
- target: 5432
published: 5432
protocol: tcp
###< doctrine/doctrine-bundle ###
###> symfony/mercure-bundle ###
###< symfony/mercure-bundle ###
volumes:
vendor_php:
cache_php:
vendor_worker:
cache_worker: