Skip to content

Commit 5eb8361

Browse files
Merge pull request #99 from studio24/feature/add-ddev
feat: add DDEV
2 parents 277d986 + 72fff63 commit 5eb8361

File tree

2 files changed

+331
-19
lines changed

2 files changed

+331
-19
lines changed

.ddev/config.yaml

Lines changed: 301 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,301 @@
1+
name: amplify
2+
type: php
3+
docroot: web
4+
php_version: "8.3"
5+
webserver_type: apache-fpm
6+
xdebug_enabled: false
7+
additional_hostnames: []
8+
additional_fqdns: []
9+
database:
10+
type: mariadb
11+
version: "10.11"
12+
use_dns_when_possible: true
13+
composer_version: "2"
14+
web_environment: []
15+
nodejs_version: auto
16+
corepack_enable: false
17+
ddev_version_constraint: ">=v1.24.0"
18+
19+
# Key features of DDEV's config.yaml:
20+
21+
# name: <projectname> # Name of the project, automatically provides
22+
# http://projectname.ddev.site and https://projectname.ddev.site
23+
# If the name is omitted, the project will take the name of the enclosing directory,
24+
# which is useful if you want to have a copy of the project side by side with this one.
25+
26+
# type: <projecttype> # backdrop, cakephp, craftcms, drupal, drupal6, drupal7, drupal8, drupal9, drupal10, drupal11, generic, laravel, magento, magento2, php, shopware6, silverstripe, symfony, typo3, wordpress
27+
# See https://ddev.readthedocs.io/en/stable/users/quickstart/ for more
28+
# information on the different project types
29+
30+
# docroot: <relative_path> # Relative path to the directory containing index.php.
31+
32+
# php_version: "8.3" # PHP version to use, "5.6" through "8.4"
33+
34+
# You can explicitly specify the webimage but this
35+
# is not recommended, as the images are often closely tied to DDEV's' behavior,
36+
# so this can break upgrades.
37+
38+
# webimage: <docker_image> # nginx/php docker image.
39+
40+
# database:
41+
# type: <dbtype> # mysql, mariadb, postgres
42+
# version: <version> # database version, like "10.11" or "8.0"
43+
# MariaDB versions can be 5.5-10.8, 10.11, and 11.4.
44+
# MySQL versions can be 5.5-8.0.
45+
# PostgreSQL versions can be 9-17.
46+
47+
# router_http_port: <port> # Port to be used for http (defaults to global configuration, usually 80)
48+
# router_https_port: <port> # Port for https (defaults to global configuration, usually 443)
49+
50+
# xdebug_enabled: false # Set to true to enable Xdebug and "ddev start" or "ddev restart"
51+
# Note that for most people the commands
52+
# "ddev xdebug" to enable Xdebug and "ddev xdebug off" to disable it work better,
53+
# as leaving Xdebug enabled all the time is a big performance hit.
54+
55+
# xhgui_https_port: 8142
56+
# Can be used to change the router https port for xhgui application
57+
# Very rarely used
58+
59+
# xhgui_http_port: 8143
60+
# Can be used to change the router http port for xhgui application
61+
# Very rarely used
62+
63+
# host_xhgui_port: 8142
64+
# Can be used to change the host binding port of the xhgui
65+
# application. Rarely used; only when port conflict and
66+
# bind_all_ports is used (normally with router disabled)
67+
68+
# xhprof_enabled: false # Set to true to enable Xhprof and "ddev start" or "ddev restart"
69+
# Note that for most people the commands
70+
# "ddev xhprof" to enable Xhprof and "ddev xhprof off" to disable it work better,
71+
# as leaving Xhprof enabled all the time is a big performance hit.
72+
73+
# xhprof_mode: [prepend|xhgui|global]
74+
# Set to "xhgui" to enable XHGui features
75+
# "xhgui" will become default in a future major release
76+
77+
# webserver_type: nginx-fpm, apache-fpm, generic
78+
79+
# timezone: Europe/Berlin
80+
# If timezone is unset, DDEV will attempt to derive it from the host system timezone
81+
# using the $TZ environment variable or the /etc/localtime symlink.
82+
# This is the timezone used in the containers and by PHP;
83+
# it can be set to any valid timezone,
84+
# see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
85+
# For example Europe/Dublin or MST7MDT
86+
87+
# composer_root: <relative_path>
88+
# Relative path to the Composer root directory from the project root. This is
89+
# the directory which contains the composer.json and where all Composer related
90+
# commands are executed.
91+
92+
# composer_version: "2"
93+
# You can set it to "" or "2" (default) for Composer v2 or "1" for Composer v1
94+
# to use the latest major version available at the time your container is built.
95+
# It is also possible to use each other Composer version channel. This includes:
96+
# - 2.2 (latest Composer LTS version)
97+
# - stable
98+
# - preview
99+
# - snapshot
100+
# Alternatively, an explicit Composer version may be specified, for example "2.2.18".
101+
# To reinstall Composer after the image was built, run "ddev debug rebuild".
102+
103+
# nodejs_version: "22"
104+
# change from the default system Node.js version to any other version.
105+
# See https://ddev.readthedocs.io/en/stable/users/configuration/config/#nodejs_version for more information
106+
# and https://www.npmjs.com/package/n#specifying-nodejs-versions for the full documentation,
107+
# Note that using of 'ddev nvm' is discouraged because "nodejs_version" is much easier to use,
108+
# can specify any version, and is more robust than using 'nvm'.
109+
110+
# corepack_enable: false
111+
# Change to 'true' to 'corepack enable' and gain access to latest versions of yarn/pnpm
112+
113+
# additional_hostnames:
114+
# - somename
115+
# - someothername
116+
# would provide http and https URLs for "somename.ddev.site"
117+
# and "someothername.ddev.site".
118+
119+
# additional_fqdns:
120+
# - example.com
121+
# - sub1.example.com
122+
# would provide http and https URLs for "example.com" and "sub1.example.com"
123+
# Please take care with this because it can cause great confusion.
124+
125+
# upload_dirs: "custom/upload/dir"
126+
#
127+
# upload_dirs:
128+
# - custom/upload/dir
129+
# - ../private
130+
#
131+
# would set the destination paths for ddev import-files to <docroot>/custom/upload/dir
132+
# When Mutagen is enabled this path is bind-mounted so that all the files
133+
# in the upload_dirs don't have to be synced into Mutagen.
134+
135+
# disable_upload_dirs_warning: false
136+
# If true, turns off the normal warning that says
137+
# "You have Mutagen enabled and your 'php' project type doesn't have upload_dirs set"
138+
139+
# ddev_version_constraint: ""
140+
# Example:
141+
# ddev_version_constraint: ">= 1.22.4"
142+
# This will enforce that the running ddev version is within this constraint.
143+
# See https://github.com/Masterminds/semver#checking-version-constraints for
144+
# supported constraint formats
145+
146+
# working_dir:
147+
# web: /var/www/html
148+
# db: /home
149+
# would set the default working directory for the web and db services.
150+
# These values specify the destination directory for ddev ssh and the
151+
# directory in which commands passed into ddev exec are run.
152+
153+
# omit_containers: [db, ddev-ssh-agent]
154+
# Currently only these containers are supported. Some containers can also be
155+
# omitted globally in the ~/.ddev/global_config.yaml. Note that if you omit
156+
# the "db" container, several standard features of DDEV that access the
157+
# database container will be unusable. In the global configuration it is also
158+
# possible to omit ddev-router, but not here.
159+
160+
# performance_mode: "global"
161+
# DDEV offers performance optimization strategies to improve the filesystem
162+
# performance depending on your host system. Should be configured globally.
163+
#
164+
# If set, will override the global config. Possible values are:
165+
# - "global": uses the value from the global config.
166+
# - "none": disables performance optimization for this project.
167+
# - "mutagen": enables Mutagen for this project.
168+
# - "nfs": enables NFS for this project.
169+
#
170+
# See https://ddev.readthedocs.io/en/stable/users/install/performance/#nfs
171+
# See https://ddev.readthedocs.io/en/stable/users/install/performance/#mutagen
172+
173+
# fail_on_hook_fail: False
174+
# Decide whether 'ddev start' should be interrupted by a failing hook
175+
176+
# host_https_port: "59002"
177+
# The host port binding for https can be explicitly specified. It is
178+
# dynamic unless otherwise specified.
179+
# This is not used by most people, most people use the *router* instead
180+
# of the localhost port.
181+
182+
# host_webserver_port: "59001"
183+
# The host port binding for the ddev-webserver can be explicitly specified. It is
184+
# dynamic unless otherwise specified.
185+
# This is not used by most people, most people use the *router* instead
186+
# of the localhost port.
187+
188+
# host_db_port: "59002"
189+
# The host port binding for the ddev-dbserver can be explicitly specified. It is dynamic
190+
# unless explicitly specified.
191+
192+
# mailpit_http_port: "8025"
193+
# mailpit_https_port: "8026"
194+
# The Mailpit ports can be changed from the default 8025 and 8026
195+
196+
# host_mailpit_port: "8025"
197+
# The mailpit port is not normally bound on the host at all, instead being routed
198+
# through ddev-router, but it can be bound directly to localhost if specified here.
199+
200+
# webimage_extra_packages: [php7.4-tidy, php-bcmath]
201+
# Extra Debian packages that are needed in the webimage can be added here
202+
203+
# dbimage_extra_packages: [telnet,netcat]
204+
# Extra Debian packages that are needed in the dbimage can be added here
205+
206+
# use_dns_when_possible: true
207+
# If the host has internet access and the domain configured can
208+
# successfully be looked up, DNS will be used for hostname resolution
209+
# instead of editing /etc/hosts
210+
# Defaults to true
211+
212+
# project_tld: ddev.site
213+
# The top-level domain used for project URLs
214+
# The default "ddev.site" allows DNS lookup via a wildcard
215+
# If you prefer you can change this to "ddev.local" to preserve
216+
# pre-v1.9 behavior.
217+
218+
# ngrok_args: --basic-auth username:pass1234
219+
# Provide extra flags to the "ngrok http" command, see
220+
# https://ngrok.com/docs/ngrok-agent/config or run "ngrok http -h"
221+
222+
# disable_settings_management: false
223+
# If true, DDEV will not create CMS-specific settings files like
224+
# Drupal's settings.php/settings.ddev.php or TYPO3's additional.php
225+
# In this case the user must provide all such settings.
226+
227+
# You can inject environment variables into the web container with:
228+
# web_environment:
229+
# - SOMEENV=somevalue
230+
# - SOMEOTHERENV=someothervalue
231+
232+
# no_project_mount: false
233+
# (Experimental) If true, DDEV will not mount the project into the web container;
234+
# the user is responsible for mounting it manually or via a script.
235+
# This is to enable experimentation with alternate file mounting strategies.
236+
# For advanced users only!
237+
238+
# bind_all_interfaces: false
239+
# If true, host ports will be bound on all network interfaces,
240+
# not the localhost interface only. This means that ports
241+
# will be available on the local network if the host firewall
242+
# allows it.
243+
244+
# default_container_timeout: 120
245+
# The default time that DDEV waits for all containers to become ready can be increased from
246+
# the default 120. This helps in importing huge databases, for example.
247+
248+
#web_extra_exposed_ports:
249+
#- name: nodejs
250+
# container_port: 3000
251+
# http_port: 2999
252+
# https_port: 3000
253+
#- name: something
254+
# container_port: 4000
255+
# https_port: 4000
256+
# http_port: 3999
257+
# Allows a set of extra ports to be exposed via ddev-router
258+
# Fill in all three fields even if you don’t intend to use the https_port!
259+
# If you don’t add https_port, then it defaults to 0 and ddev-router will fail to start.
260+
#
261+
# The port behavior on the ddev-webserver must be arranged separately, for example
262+
# using web_extra_daemons.
263+
# For example, with a web app on port 3000 inside the container, this config would
264+
# expose that web app on https://<project>.ddev.site:9999 and http://<project>.ddev.site:9998
265+
# web_extra_exposed_ports:
266+
# - name: myapp
267+
# container_port: 3000
268+
# http_port: 9998
269+
# https_port: 9999
270+
271+
#web_extra_daemons:
272+
#- name: "http-1"
273+
# command: "/var/www/html/node_modules/.bin/http-server -p 3000"
274+
# directory: /var/www/html
275+
#- name: "http-2"
276+
# command: "/var/www/html/node_modules/.bin/http-server /var/www/html/sub -p 3000"
277+
# directory: /var/www/html
278+
279+
# override_config: false
280+
# By default, config.*.yaml files are *merged* into the configuration
281+
# But this means that some things can't be overridden
282+
# For example, if you have 'use_dns_when_possible: true'' you can't override it with a merge
283+
# and you can't erase existing hooks or all environment variables.
284+
# However, with "override_config: true" in a particular config.*.yaml file,
285+
# 'use_dns_when_possible: false' can override the existing values, and
286+
# hooks:
287+
# post-start: []
288+
# or
289+
# web_environment: []
290+
# or
291+
# additional_hostnames: []
292+
# can have their intended affect. 'override_config' affects only behavior of the
293+
# config.*.yaml file it exists in.
294+
295+
# Many DDEV commands can be extended to run tasks before or after the
296+
# DDEV command is executed, for example "post-start", "post-import-db",
297+
# "pre-composer", "post-composer"
298+
# See https://ddev.readthedocs.io/en/stable/users/extend/custom-commands/ for more
299+
# information on the commands that can be extended and the tasks you can define
300+
# for them. Example:
301+
#hooks:

0 commit comments

Comments
 (0)