-
Notifications
You must be signed in to change notification settings - Fork 0
/
pliz.example.yml
62 lines (54 loc) · 1.55 KB
/
pliz.example.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
version: 1
# optional. Allows to override the container names
containers:
# builder: srcbuild
# app: php
# proxy: proxy
# db: db
# optional. Set the container that will be started with pliz start
startup_container: #proxy
# optional. Allows to start other containers after `pliz start`
# useful for cron containers for example
additional_startup_containers:
# - cron
config_files:
.env.sample: .env
docker_ports.sample.yml: docker_ports.yml
# ...
install_tasks:
- npm
- bower
- composer
- key:generate
tasks:
- name: npm
container: srcbuild # can be 'none' to run the command on the host
command: ["echo", "as you arrrrre!"]
- name: key:generate
description: Generate the key used the encrypt cookies
container: none
command:
- sh
- "-c"
- nom="Bruno";
if [ $nom = "Bruno" ];
then
echo "Hello Bruno!";
fi;
checklist:
- Check if your .env is correctly configured
- Don't forget to execute 'pliz run key_generate' if needed
backup:
# list of the files or directories to backup
files:
- storage/app
- database.sqlite
# list of the compose DB services to backup
# supported DB: MySQL or MongoDB
databases:
- container: db
type: mysql # mysql|mariadb|postgres|mongo, optional. If not present, the image name is used to try to guess the type
no_lock: false # only for mysql, add --single-transaction --skip-lock-tables arguments to avoid to lock table
databases: # only used for mysql. List of databases to backup
- db
- ghost