This repository has been archived by the owner on Feb 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsync-compose-full.yml
69 lines (66 loc) · 1.71 KB
/
sync-compose-full.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
version: 1
containers:
- mytest-container:
volumes:
- volume:
from: test/
to: /var/www/html/
mode: 775
owner: www-data:www-data
cmd:
- echo hi
ignore:
- node_modules/
replace:
- 'string:string'
- volume:
profile: local
from: test/config.php
to: /var/www/html/config.php
mode: 775
owner: www-data:www-data
cmd:
- echo local
ignore:
- node_modules/
replace:
- 'string:string'
- volume:
profile: staging
from: test/test/sample.php
to: /var/www/html/sample.php
mode: 775
owner: www-data:www-data
cmd:
- echo staging
ignore:
- node_modules/
replace:
- 'string:string'
post_start:
- echo "install"
database:
driver: mysql
profile: staging
method: export # [ export | dump ]
file: /path/to/dump.sql #[ ./relative | /absolute ]/path/to/dump.sql
server:
database_user: user
database_name: dbname
database_pass: pass
host: server.name
port: 3306
local:
provision: true # drop db if it exists, create if not exist. needs root password
method: DOCKER
database_user: user
database_name: dbname
database_pass: pass
root_password: root_password # only used for provision function and docker method
host: localhost
port: 3306
cloud_storage:
profile: local
driver: GOOGLE_BUCKET_STORAGE
from: https://somesomething
to: container:/somewehere