This repository has been archived by the owner on Feb 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
skeppa.annotated.yaml
105 lines (74 loc) · 3.04 KB
/
skeppa.annotated.yaml
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
# Deploy settings
settings:
# The extensions you wish to utlize
extensions:
- ecr
# Path to container env files
env_files_dir: docker-compose-config
# Path to container required files
files_dir: docker-compose-files
# Remote path to mounted volumesRemote path to mounted volumes
mount_dir: docker/var
# Load custom fabric tasks
tasks:
- tasks
# Configuration for our production stage
prod:
# Project name, will be used by docker-compose as the "p" argument
project: hello1
# The host(s) you wish to deploy to (Example: ssh.server.com)
hosts: ssh.server.com
# SSH user
user: admin
# SSH password (Optional if you have a ssh-key)
password: mypassword
# The path where docker-compose wil run from and any files uploaded to
path: /home/ubuntu/
# If the ssh key should be forwarded (Optional)
forward_agent: true
# Your ssh-key (optional if you use a password)
key_filename: ~/.ssh/id_rsa.pub
# Configuration about the docker image you wish to build
image:
# The docker tag you wish to pull from and use when pushing
tag: latest
# Local docker image name
name: django-test
# Path to docker image
path: src
# Add additional arguments to the build command (such as --rm etc)
extra_args: --rm=false
# The repository you wish to deploy your image to
repository:
# Repository url
url: myrepro.com/myimage
# Type of registry, using ecr will trigger the ecr extension (Optional)
type: ecr
# The tag that will be used when pushing/pulling (Default is 'latest')
tag: latest
# If True, skeppa will try push both a versioned image and with regular tag (Default is False)
use_versioning: False
# ECR Extension specific settings
# The region where your image are saved (Optional, is "us-east-1" by default)
aws_region: us-east-1
# Your local awscli profile (Optional)
aws_local_profile: my_local_profile
# If you run docker lower than 17.06 you need to supress --no-include_email (Default True)
aws_no_include_email: True
# Same setting as above (but for the local machine)
aws_local_no_include_email: True
# Any env file you want to upload and associate with container (is located in docker-compose-config and will be saved to prod.path/docker-compose-config)
env_files:
- web.env
- db.env
# Path to the compose-config files you want to use (will be saved to prod.path)
compose_files: docker-compose-prod.yml
# Any extra files you want to upload
files:
# If no remote path is specified a directory will be created (at prod.path/docker/var)
- db/data
# Will upload the file from pwd/files/nginx.conf to prod.path/nginx/conf/nginx.conf
- nginx/conf/nginx.conf:nginx.conf
# Configuration for our dev stage
dev:
- example