-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathitkdev-docker-compose.completely.yaml
More file actions
173 lines (138 loc) · 4.4 KB
/
itkdev-docker-compose.completely.yaml
File metadata and controls
173 lines (138 loc) · 4.4 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# https://github.com/bashly-framework/completely?tab=readme-ov-file#configuration-syntax
itkdev-docker-compose:
- --help
# url [service [port]]
# Print url to site or a service
#
# Protip: run
#
# brew install jq
#
# for improved handling of Traefik host names using jq (https://stedolan.github.io/jq/).
- url
# open [service [port]]
# Open url in default browser
- open
# drush
# Run drush command. If drush in installed via composer,
# the vendor/bin/drush command is run inside the phpfpm
# container. Otherwise, the drush container is used to
# run the command.
- drush
# self:update
# Update this script and other stuff.
- self:update
# sync
# Sync both database and files.
- sync
# sync:db
# Sync database base on 'REMOTE_DB_DUMP_CMD' in the env
# file.
#
# If 'SYNC_DB_POST_SCRIPT' is set, it will be eval'ed after
# importing the remote database.
- sync:db
# sync:files
# Sync files base on 'REMOTE_PATH' or 'LOCAL_PATH' in
# the env file.
- sync:files
# sql:cli
# Open MySQL client to the database (named `db`) in the database
# container (`mariadb`).
#
# Execute a SQL query from the command line:
#
# itkdev-docker-compose sql:cli --table <<< 'SHOW TABLES'
#
# Run a SQL script:
#
# itkdev-docker-compose sql:cli < query.sql
- sql:cli
# sql:connect
# Print mysql command for connecting to database (named
# `db`) in the database container (`mariadb`).
#
# Use `$(itkdev-docker-compose sql:connect)` to open the
# database cli.
- sql:connect
# sql:log
# Log SQL queries sent to database.
- sql:log
# sql:open
# Open database GUI and connect to MariaDB.
- sql:open
# sql:port
# Display the exposed MariaDB SQL server port.
- sql:port
# template:install name [--force] [--list]
# Install a named docker-composer template in the current
# directory.
- template:install:
- --force
- --list
- $(itkdev-docker-compose template:install --list-compact 2>/dev/null)
# template:update [--force]
# Update template installed in project.
- template:update:
- --force
# traefik:start
# Start traefik reverse proxy.
- traefik:start
# traefik:stop
# Stop traefik reverse proxy
- traefik:stop
# traefik:url
# URL for the administrative UI for traefik.
- traefik:url
# traefik:open
# Open the administrative UI for traefik.
- traefik:open
# traefik:logs
# See traefik logs
- traefik:logs
# traefik:pull
# Pull latest traefik & socket-proxy containers
- traefik:pull
# mail:url
# URL for the test mail web interface.
- mail:url
# mail:open
# Open test mail web interface in default browser.
- mail:open
# mailhog:url
# URL for the mailhog web-interface.
- mailhog:url
# mailhog:open
# Open mailhog url in default browser
- mailhog:open
# xdebug
# Boot the containers with PHP xdebug support enabled.
- xdebug
# xdebug3
# Boot the containers with PHP xdebug support enabled.
# Consider using `xdebug` for an improved developer experience.
- xdebug3
# hosts:insert
# Insert the docker site url into the hosts file.
- hosts:insert
# images:pull
# Update/pull all docker images.
- images:pull
# shell [service name]
# Enter into /usr/bin/env sh inside container. E.g. itkdev-docker-compose shell phpfpm
- shell
# composer
# Run composer command inside phpfpm container
- composer
# php
# Run php command inside phpfpm container
- php
# bin/*
# vendor/bin/*
# Run command command inside phpfpm container
# down
# Stop and remove containers, networks, images, and volumes
- down
# version
# Display this tool's current version
- version