-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeploy.yaml
39 lines (36 loc) · 942 Bytes
/
deploy.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
version: 1
service: notes
username: notes
scripts:
build_inside_vm: |
apt-get update
apt-get install openssl
echo "MYSQL_USERNAME=root" > /home/notes/.env
echo "MYSQL_DATABASE=notes" >> /home/notes/.env
echo "MYSQL_HOST=mysql" >> /home/notes/.env
docker compose -f /home/notes/docker-compose.yml build --pull
start_once: |
echo "MYSQL_ROOT_PASSWORD=$(openssl rand -hex 32)" >> /home/notes/.env
echo "SECRET=$(openssl rand -hex 32)" >> /home/notes/.env
docker compose -f /home/notes/docker-compose.yml up -d
files:
- sources:
- ./docker-compose.yml
- ./www
- ./docker
destination: /home/notes
proxies:
- name: main
listener:
protocol: http
certificate: wildcard.ctf.hitb.org
upstream:
host_index: 14
port: 80
limits:
- source: team
location: /
limit: 300r/m
burst: 100
dns_records:
- notes