-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeploy.yaml
43 lines (39 loc) · 1023 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
40
41
42
43
version: 1
service: docs
username: docs
scripts:
build_inside_vm: |
apt-get update
apt-get install -y openssl
docker compose -f /home/$USERNAME/docker-compose.yaml pull pg redis nginx
docker compose -f /home/$USERNAME/docker-compose.yaml build
start_once: |
echo "REDIS_URI=redis://redis:6379" > /home/$USERNAME/.env
echo "POSTGRES_PASSWORD=$(openssl rand -hex 12)" >> /home/$USERNAME/.env
echo "DOCS_SECRET=$(openssl rand -hex 12)" >> /home/$USERNAME/.env
docker compose -f /home/$USERNAME/docker-compose.yaml up -d
files:
- sources:
- api
- auth
- docker-compose.yaml
- init.sql
- nginx.conf
- index.html
- static
destination: /home/$USERNAME
proxies:
- name: main
listener:
protocol: http
certificate: wildcard.ctf.hitb.org
upstream:
host_index: 12
port: 80
limits:
- source: team
location: /
limit: 1r/s
burst: 20
dns_records:
- docs