-
Notifications
You must be signed in to change notification settings - Fork 4
/
instellar.yml
83 lines (73 loc) · 1.47 KB
/
instellar.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
dependencies:
trace: true
build:
- elixir
runtime:
- bash
- curl
- jq
- ca-certificates
- inotify-tools
- s6
- uplink-openrc
stack: alpine/3.18
build:
destinations:
- '_build/prod/rel/uplink/*'
command: |
export MIX_ENV=prod
mix local.hex --force
mix local.rebar --force
mix do deps.get --only prod
mix release
run:
name: uplink
commands:
- name: migrate
binary: uplink
call: 'eval Uplink.Release.Tasks.migrate'
- name: console
binary: uplink
call: remote
- name: logs
binary: tail
path: /usr/bin
call: -f -n 100 /var/log/uplink/current
services:
- name: web
binary: uplink
start:
call: 'start'
hook:
post-install: |
rc-update add uplink
pre-upgrade: |
rc-service uplink stop
post-upgrade: |
rc-service uplink start
post-deinstall: |
rc-service uplink stop
rc-update del uplink
kits:
- description: Limited to single node, good for simple setups
main: true
name: lite
max_instances_count: 1
ports:
- name: web
target: 4040
variables:
- key: UPLINK_MODE
default_value: lite
- key: UPLINK_SECRET
driver: uplink/secret
- description: Can run on multiple nodes, requires postgresql database
name: pro
ports:
- name: web
target: 4040
variables:
- key: UPLINK_MODE
default_value: pro
- key: UPLINK_SECRET
driver: uplink/secret