-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdeploy.yml
59 lines (52 loc) · 1.52 KB
/
deploy.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
service: workypad
image: carsoncole/workypad
servers:
web:
hosts:
- 147.182.129.52
labels:
traefik.http.routers.domain.rule: Host(`workypad.com`)
traefik.http.routers.domain.entrypoints: websecure
traefik.http.routers.domain.tls.certresolver: letsencrypt
registry:
username: carsoncole
password:
- KAMAL_REGISTRY_PASSWORD
env:
clear:
DB_HOST: 147.182.129.52
secret:
- RAILS_MASTER_KEY
- POSTGRES_PASSWORD
accessories:
db:
image: postgres:15
host: 147.182.129.52
port: 5432
env:
clear:
POSTGRES_USER: 'workypad'
POSTGRES_DB: 'workypad_production'
secret:
- POSTGRES_PASSWORD
directories:
- data:/var/lib/postgresql/data
traefik:
# host_port: 8080
options:
publish:
- "443:443"
volume:
- "/letsencrypt/acme.json:/letsencrypt/acme.json"
args:
entryPoints.web.address: ":80"
entryPoints.websecure.address: ":443"
entryPoints.web.http.redirections.entryPoint.to: websecure
entryPoints.web.http.redirections.entryPoint.scheme: https
entryPoints.web.http.redirections.entrypoint.permanent: true
entrypoints.websecure.http.tls: true
entrypoints.websecure.http.tls.domains[0].main: "workypad.com"
certificatesResolvers.letsencrypt.acme.email: "carson.cole@gmail.com"
certificatesResolvers.letsencrypt.acme.storage: "/letsencrypt/acme.json"
certificatesResolvers.letsencrypt.acme.httpchallenge: true
certificatesResolvers.letsencrypt.acme.httpchallenge.entrypoint: web