This repository has been archived by the owner on Mar 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
orbit.yml
152 lines (134 loc) · 6.47 KB
/
orbit.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
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
# |--------------------------------------------------------------------------
# | Tasks
# |--------------------------------------------------------------------------
# |
# | This file describes the tasks of your project.
# | Feel free to add your own tasks!
# |
# | https://github.com/gulien/orbit/
# |
tasks:
# |--------------------------------------------------------------------------
# | orbit run kickoff
# |--------------------------------------------------------------------------
# |
# | Generates all configuration files, builds the NGINX image
# | and starts the containers.
# |
- use: kickoff
short: Generates all configuration files, builds the NGINX image and starts the containers
run:
- orbit run build proxy-up up {{ if debug }}-d{{ end }}
# |--------------------------------------------------------------------------
# | orbit run shutdown
# |--------------------------------------------------------------------------
# |
# | Stops all containers.
# |
- use: shutdown
short: Stops all containers
run:
- orbit run down proxy-down {{ if debug }}-d{{ end }}
# |--------------------------------------------------------------------------
# | orbit run build
# |--------------------------------------------------------------------------
# |
# | Generates all configuration files and builds the NGINX image.
# |
# | See config/orbit/orbit-build.yml for more information.
# |
- use: build
short: Generates all configuration files and builds the NGINX image
run:
- orbit run docker-sync-build -f config/orbit/orbit-build.yml {{ if debug }}-d{{ end }}
- orbit run toolbox-build -f config/orbit/orbit-build.yml {{ if debug }}-d{{ end }}
- orbit run traefik-build -f config/orbit/orbit-build.yml {{ if debug }}-d{{ end }}
- orbit run graylog-build -f config/orbit/orbit-build.yml {{ if debug }}-d{{ end }}
- orbit run php-fpm-build -f config/orbit/orbit-build.yml {{ if debug }}-d{{ end }}
- orbit run nginx-build -f config/orbit/orbit-build.yml {{ if debug }}-d{{ end }}
- orbit run mysql-build -f config/orbit/orbit-build.yml {{ if debug }}-d{{ end }}
- orbit run redis-build -f config/orbit/orbit-build.yml {{ if debug }}-d{{ end }}
- orbit run rabbitmq-build -f config/orbit/orbit-build.yml {{ if debug }}-d{{ end }}
- orbit generate -f config/orbit/whale.txt -p "Notification,Your configuration files have been successfully generated!" {{ if debug }}-d{{ end }}
# |--------------------------------------------------------------------------
# | orbit run proxy-up
# |--------------------------------------------------------------------------
# |
# | Starts the Traefik container.
# |
# | See config/orbit/orbit-up.yml for more information.
# |
- use: proxy-up
short: Starts the Traefik container
run:
- orbit run traefik-up -f config/orbit/orbit-up.yml {{ if debug }}-d{{ end }}
- docker ps
# |--------------------------------------------------------------------------
# | orbit run up
# |--------------------------------------------------------------------------
# |
# | Starts all containers without the Traefik container.
# |
# | See config/orbit/orbit-up.yml for more information.
# |
- use: up
short: Starts all containers without the Traefik container
run:
- orbit run graylog-up -f config/orbit/orbit-up.yml {{ if debug }}-d{{ end }}
- orbit run docker-sync-up -f config/orbit/orbit-up.yml {{ if debug }}-d{{ end }}
- orbit run php-fpm-up -f config/orbit/orbit-up.yml {{ if debug }}-d{{ end }}
- orbit run nginx-up -f config/orbit/orbit-up.yml {{ if debug }}-d{{ end }}
- orbit run mysql-up -f config/orbit/orbit-up.yml {{ if debug }}-d{{ end }}
- orbit run redis-up -f config/orbit/orbit-up.yml {{ if debug }}-d{{ end }}
- orbit run rabbitmq-up -f config/orbit/orbit-up.yml {{ if debug }}-d{{ end }}
- orbit generate -f config/orbit/whale.txt -p "Notification,Your containers have been successfully started!" {{ if debug }}-d{{ end }}
- docker ps
# |--------------------------------------------------------------------------
# | orbit run proxy-down
# |--------------------------------------------------------------------------
# |
# | Stops the Traefik container.
# |
# | See config/orbit/orbit-down.yml for more information.
# |
- use: proxy-down
short: Stops the Traefik container
run:
- orbit run traefik-down -f config/orbit/orbit-down.yml {{ if debug }}-d{{ end }}
- orbit generate -f config/orbit/whale.txt -p "Notification,Your reverse proxy has been successfully stopped!" {{ if debug }}-d{{ end }}
- docker ps
# |--------------------------------------------------------------------------
# | orbit run down
# |--------------------------------------------------------------------------
# |
# | Stops all containers without the Traefik container.
# |
# | See config/orbit/orbit-down.yml for more information.
# |
- use: down
short: Stops all containers without the Traefik container
run:
- orbit run graylog-down -f config/orbit/orbit-down.yml {{ if debug }}-d{{ end }}
- orbit run php-fpm-down -f config/orbit/orbit-down.yml {{ if debug }}-d{{ end }}
- orbit run nginx-down -f config/orbit/orbit-down.yml {{ if debug }}-d{{ end }}
- orbit run docker-sync-down -f config/orbit/orbit-down.yml {{ if debug }}-d{{ end }}
- orbit run mysql-down -f config/orbit/orbit-down.yml {{ if debug }}-d{{ end }}
- orbit run redis-down -f config/orbit/orbit-down.yml {{ if debug }}-d{{ end }}
- orbit run rabbitmq-down -f config/orbit/orbit-down.yml {{ if debug }}-d{{ end }}
- orbit run toolbox-down -f config/orbit/orbit-down.yml {{ if debug }}-d{{ end }}
- orbit generate -f config/orbit/whale.txt -p "Notification,Your containers have been successfully stopped!" {{ if debug }}-d{{ end }}
- docker ps
# |--------------------------------------------------------------------------
# | Commands
# |--------------------------------------------------------------------------
# |
# | See config/orbit//orbit-commands.yml for more information.
# |
- use: workspace
short: Connects through ash to the PHP-FPM container
run:
- orbit run command-workspace -f config/orbit/orbit-commands.yml {{ if debug }}-d{{ end }}
- use: mysql-cli
short: Opens the MySQL CLI as root
run:
- orbit run command-mysql-cli -f config/orbit/orbit-commands.yml {{ if debug }}-d{{ end }}