Compare commits
623 Commits
example/lo
...
release-v3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4587aaa2e7 | ||
|
|
35125d3e41 | ||
|
|
0c502c56ff | ||
|
|
d922d0f363 | ||
|
|
d5fbf1869e | ||
|
|
7567a4669b | ||
|
|
4a368b6279 | ||
|
|
f0feb3920a | ||
|
|
6e264c2cbd | ||
|
|
c2fef16e7f | ||
|
|
98af1ee0f1 | ||
|
|
a014e6987d | ||
|
|
80fbee033f | ||
|
|
aa03d3300a | ||
|
|
2fda3845b0 | ||
|
|
2ab6ff4284 | ||
|
|
4937e38996 | ||
|
|
29994d5a47 | ||
|
|
5d36da146c | ||
|
|
c8abf7a184 | ||
|
|
f5ca95e8a8 | ||
|
|
6f6a258db1 | ||
|
|
91b9623260 | ||
|
|
594b253883 | ||
|
|
465216f223 | ||
|
|
45ecfb1332 | ||
|
|
b05bf66a98 | ||
|
|
d6e52074fc | ||
|
|
f8b0f22dd6 | ||
|
|
cd18541a77 | ||
|
|
36bc2a5e98 | ||
|
|
84223fd3c2 | ||
|
|
a4d313ef8b | ||
|
|
4ea7fc4db6 | ||
|
|
0aca750ab4 | ||
|
|
4f011445a0 | ||
|
|
030eecf235 | ||
|
|
0e63623d06 | ||
|
|
4526b07644 | ||
|
|
15043e209b | ||
|
|
a99a2d791a | ||
|
|
c812c07076 | ||
|
|
659c4a3dd0 | ||
|
|
e7d50ea0e8 | ||
|
|
d1841b2287 | ||
|
|
a24104bbc7 | ||
|
|
eb5ac7b4be | ||
|
|
9cda60d822 | ||
|
|
ed9f386e22 | ||
|
|
deaadc84ac | ||
|
|
8892507e29 | ||
|
|
1e6ef72a1c | ||
|
|
62310b0207 | ||
|
|
377964da71 | ||
|
|
b93882f36f | ||
|
|
ea9679f32c | ||
|
|
59f7b813c2 | ||
|
|
cd8c092600 | ||
|
|
69721634ab | ||
|
|
9315c39cdc | ||
|
|
c4ec75c4af | ||
|
|
d0fb4247e5 | ||
|
|
d4d7fdbae6 | ||
|
|
c652cac1bd | ||
|
|
6a143526da | ||
|
|
98e87102a4 | ||
|
|
2c1575a47a | ||
|
|
c027380ecb | ||
|
|
720639b2ea | ||
|
|
db2d9dc08e | ||
|
|
5d0489bf13 | ||
|
|
6c54c87dfc | ||
|
|
7fbffa6094 | ||
|
|
7528e9d0f0 | ||
|
|
09839f367f | ||
|
|
21ac156d00 | ||
|
|
15d7c1cf09 | ||
|
|
5636ea9001 | ||
|
|
d7933ece19 | ||
|
|
b329667c8a | ||
|
|
730bdd0faf | ||
|
|
0aaa480367 | ||
|
|
0dab29dfed | ||
|
|
9486648e4e | ||
|
|
e2b95b8f61 | ||
|
|
5d74a43453 | ||
|
|
47966b5c26 | ||
|
|
9359793032 | ||
|
|
59ad397832 | ||
|
|
18cfe50f5f | ||
|
|
e9ede520ba | ||
|
|
6a03392316 | ||
|
|
3325e52b64 | ||
|
|
88bee2ec45 | ||
|
|
bc3decdd21 | ||
|
|
bb0aabaf12 | ||
|
|
9a8058bd92 | ||
|
|
bd4fc5b877 | ||
|
|
994b791bcd | ||
|
|
c442968a13 | ||
|
|
9c602da764 | ||
|
|
ee4d60a854 | ||
|
|
9d50b994da | ||
|
|
d75d82de2b | ||
|
|
b4e1788f38 | ||
|
|
84d89058c8 | ||
|
|
9d59034af8 | ||
|
|
ccffeb1842 | ||
|
|
76b0c8ab73 | ||
|
|
7f2a0844a6 | ||
|
|
04fadaf4df | ||
|
|
3d3eb7097a | ||
|
|
81dba2d53c | ||
|
|
da04c4ec7e | ||
|
|
6fb7bd8712 | ||
|
|
ca82c6c218 | ||
|
|
cb9db89ab1 | ||
|
|
20137bb1e3 | ||
|
|
78ec934aa5 | ||
|
|
438bfddbf4 | ||
|
|
3674dd770f | ||
|
|
7c445ff49d | ||
|
|
5233f097b8 | ||
|
|
091e64a6ed | ||
|
|
373571e4d5 | ||
|
|
c77ccdfc4f | ||
|
|
a81056818d | ||
|
|
bda88300c6 | ||
|
|
ccf2c517c3 | ||
|
|
97a5a9b7a9 | ||
|
|
0ae8574f10 | ||
|
|
8e5ee518b8 | ||
|
|
be0f84b532 | ||
|
|
75d7a8b290 | ||
|
|
e5b7a307eb | ||
|
|
722ac1fedd | ||
|
|
d4fc846117 | ||
|
|
4a4fb0cc4b | ||
|
|
66b448b21d | ||
|
|
3f284777d9 | ||
|
|
556765e31c | ||
|
|
e378263b9a | ||
|
|
da0d8c72ba | ||
|
|
265da863a7 | ||
|
|
7c3368827d | ||
|
|
aafe4659d5 | ||
|
|
90bb564700 | ||
|
|
0b4ddc1557 | ||
|
|
83a978defc | ||
|
|
ef94a405ec | ||
|
|
0cea741e8d | ||
|
|
54aa682759 | ||
|
|
c1d515648c | ||
|
|
ef52a6bdec | ||
|
|
a46637ebf5 | ||
|
|
fe7e381e74 | ||
|
|
646127b78b | ||
|
|
2f73753547 | ||
|
|
c20e4c0e2c | ||
|
|
052c73319b | ||
|
|
648719a893 | ||
|
|
ed3d7db115 | ||
|
|
ac51207cf2 | ||
|
|
5d73aa98ae | ||
|
|
f513207635 | ||
|
|
9c63f2c5ca | ||
|
|
6e52f5fe98 | ||
|
|
d9a0883213 | ||
|
|
2481295170 | ||
|
|
861d81afdf | ||
|
|
f13b606f4c | ||
|
|
5a0c6ff4c2 | ||
|
|
0dd6e76218 | ||
|
|
045da5b5a6 | ||
|
|
ea6f007b7d | ||
|
|
d5b1d5efda | ||
|
|
b32d5a5a11 | ||
|
|
84db4f1335 | ||
|
|
1acb697ff2 | ||
|
|
92b3fd0196 | ||
|
|
d2be28f835 | ||
|
|
dfea5d6096 | ||
|
|
9a8a3b417b | ||
|
|
d9615badc2 | ||
|
|
13ee5f11bb | ||
|
|
b3460f0131 | ||
|
|
3343200901 | ||
|
|
14416be82b | ||
|
|
26f374e4d1 | ||
|
|
55eb90b9eb | ||
|
|
e25704fbd6 | ||
|
|
dac54efbfe | ||
|
|
b68b021815 | ||
|
|
a3678f6b48 | ||
|
|
07ef9141b2 | ||
|
|
ebad0318d6 | ||
|
|
d128c2f580 | ||
|
|
3b41ddc2b9 | ||
|
|
2d645b1c1a | ||
|
|
f1cdd081e6 | ||
|
|
fc458e1fc7 | ||
|
|
d9e4d88e04 | ||
|
|
ea2486a36a | ||
|
|
75a2a93185 | ||
|
|
5d6508a1e0 | ||
|
|
f51d8a44be | ||
|
|
14284a9857 | ||
|
|
f1f63815fd | ||
|
|
942c260101 | ||
|
|
8304fa112f | ||
|
|
335ca0bd33 | ||
|
|
24d9c6371d | ||
|
|
d3dfcc2ff9 | ||
|
|
c18d2f1525 | ||
|
|
bf3bcc5267 | ||
|
|
084a0ebbf6 | ||
|
|
6c3c5095d7 | ||
|
|
fb0ba5046e | ||
|
|
c841833591 | ||
|
|
6880d27bc5 | ||
|
|
ce5869e86f | ||
|
|
1cd7541002 | ||
|
|
b96bd26d82 | ||
|
|
fb96843970 | ||
|
|
72fac9db4f | ||
|
|
baea61e1fc | ||
|
|
d50f15f54b | ||
|
|
90bc00d3aa | ||
|
|
14a2f224a6 | ||
|
|
cfc72a1612 | ||
|
|
6dbacba0a6 | ||
|
|
2ceef21b30 | ||
|
|
a6a1617252 | ||
|
|
eb5adf6bf7 | ||
|
|
6b3b545ea0 | ||
|
|
0af1e92d51 | ||
|
|
06d7ce2167 | ||
|
|
72e76ac168 | ||
|
|
3e9a5a25e3 | ||
|
|
23930c073f | ||
|
|
72f80700b2 | ||
|
|
f23aca28ac | ||
|
|
86e1d47b54 | ||
|
|
2a5f34db9b | ||
|
|
b0e6db073b | ||
|
|
b74f1ddcf0 | ||
|
|
66ebcf32c4 | ||
|
|
568a774de5 | ||
|
|
a54e12f6e8 | ||
|
|
acd71e8b4a | ||
|
|
d0a6fabe98 | ||
|
|
2c72a1c0fd | ||
|
|
26f9cac3ff | ||
|
|
3152271b78 | ||
|
|
11bc286588 | ||
|
|
40a6c5f254 | ||
|
|
406d6a2bb2 | ||
|
|
e7e9dfa608 | ||
|
|
2ca314d8d1 | ||
|
|
fed06031cb | ||
|
|
fdf295c81d | ||
|
|
8fcef0c3b8 | ||
|
|
5f85d88a47 | ||
|
|
d534d5ae5b | ||
|
|
1493ecad0a | ||
|
|
915c2ac4f8 | ||
|
|
ff8fc01f2e | ||
|
|
ba640dbb7c | ||
|
|
a94bce2275 | ||
|
|
88b82c9e11 | ||
|
|
09631e8896 | ||
|
|
65470e462b | ||
|
|
488814cfe8 | ||
|
|
0ada63b210 | ||
|
|
1a910d8ee1 | ||
|
|
fbac83c1aa | ||
|
|
7eaa4cdc98 | ||
|
|
7cc28f2ad2 | ||
|
|
3d916679b8 | ||
|
|
445c0d5e87 | ||
|
|
265e8ecaf8 | ||
|
|
12c8961757 | ||
|
|
5ab069d70d | ||
|
|
0cc2a42c41 | ||
|
|
6ed5029b12 | ||
|
|
466bfc0686 | ||
|
|
808e0e9669 | ||
|
|
6fbf0453c5 | ||
|
|
f0d5bb0923 | ||
|
|
3c787951fe | ||
|
|
6f2c76ea37 | ||
|
|
c2f2c12a77 | ||
|
|
7b54eac24f | ||
|
|
80cea002b5 | ||
|
|
ad8727b793 | ||
|
|
793aa88ba0 | ||
|
|
1f1f27e923 | ||
|
|
7d8f885e58 | ||
|
|
85a9493ec9 | ||
|
|
ead2053600 | ||
|
|
be7398c764 | ||
|
|
158dba0544 | ||
|
|
47220f203e | ||
|
|
394efaf05b | ||
|
|
83fba3d630 | ||
|
|
5f6bd72867 | ||
|
|
bbd5c3018e | ||
|
|
97c6997c94 | ||
|
|
8e0f97489d | ||
|
|
0cf2122687 | ||
|
|
eb4e7cfc11 | ||
|
|
59c5f3a7bb | ||
|
|
7beefda1da | ||
|
|
41f3132526 | ||
|
|
1d58527a40 | ||
|
|
ca0badc792 | ||
|
|
2980dcdc5c | ||
|
|
053b362125 | ||
|
|
cf4e21e943 | ||
|
|
5110cb9999 | ||
|
|
fea1bc5f42 | ||
|
|
478430472a | ||
|
|
45547ad3c7 | ||
|
|
34e75b71c4 | ||
|
|
e142349af1 | ||
|
|
c9f7cef306 | ||
|
|
268096d6d5 | ||
|
|
7cd4b59875 | ||
|
|
9d06591399 | ||
|
|
7c8824258f | ||
|
|
a676e50d41 | ||
|
|
62da56b975 | ||
|
|
ad1465463f | ||
|
|
b9e7744fd7 | ||
|
|
7379ac8acf | ||
|
|
a176979c04 | ||
|
|
1de297335c | ||
|
|
8b88c13f1e | ||
|
|
be36dbeca9 | ||
|
|
ff8b90dad0 | ||
|
|
f74f6c8af2 | ||
|
|
b92fdebef4 | ||
|
|
1f0557c080 | ||
|
|
eb8c59dd00 | ||
|
|
769c554932 | ||
|
|
d6794f8f3d | ||
|
|
f2cf4973dd | ||
|
|
2d721f33d7 | ||
|
|
8764d9d7bf | ||
|
|
00743f974a | ||
|
|
1fbe39620b | ||
|
|
81686e3ced | ||
|
|
6dbd2120f7 | ||
|
|
f2be2990da | ||
|
|
d23bb2d76d | ||
|
|
72005db13d | ||
|
|
4f9aae713d | ||
|
|
354d218acb | ||
|
|
9f2791858d | ||
|
|
7ccdb9ded5 | ||
|
|
cc95885b91 | ||
|
|
b4afde39d6 | ||
|
|
46a0e729db | ||
|
|
27821a9299 | ||
|
|
6d7ce07be7 | ||
|
|
306cf408c0 | ||
|
|
a9726a7f07 | ||
|
|
2cfd6bc5d3 | ||
|
|
566bf106ee | ||
|
|
db1791a827 | ||
|
|
b0c52392f9 | ||
|
|
8b23568c4b | ||
|
|
35cdfa1d5a | ||
|
|
6134a66c2d | ||
|
|
6091f121f7 | ||
|
|
049bdcb02b | ||
|
|
db89df9e20 | ||
|
|
0e50ceaaba | ||
|
|
0109dbba14 | ||
|
|
1933beb5da | ||
|
|
294d8e31f7 | ||
|
|
25dbb33e92 | ||
|
|
2449ae5150 | ||
|
|
8da9ae1b1b | ||
|
|
adc3884458 | ||
|
|
40185b75b6 | ||
|
|
25f6e0e417 | ||
|
|
fd0e00e1ac | ||
|
|
653ca5fd21 | ||
|
|
af336f8293 | ||
|
|
ad98a1da40 | ||
|
|
b56b94ed62 | ||
|
|
c283a92614 | ||
|
|
9e6cc5d7f8 | ||
|
|
1ac3e4870f | ||
|
|
d87f0ef683 | ||
|
|
50aed20cc3 | ||
|
|
09ee6ff398 | ||
|
|
a345e83d60 | ||
|
|
c8c8a6b1be | ||
|
|
a7937f8b9f | ||
|
|
120b9cf3c9 | ||
|
|
19e95414ec | ||
|
|
5b4bd44810 | ||
|
|
34e8bd6749 | ||
|
|
7ede5e02e0 | ||
|
|
a31b9282ff | ||
|
|
808cd2e5ea | ||
|
|
1da04ab487 | ||
|
|
319d2bd5c7 | ||
|
|
bd197b4e33 | ||
|
|
f74b638c98 | ||
|
|
6ee82e4275 | ||
|
|
4726af439b | ||
|
|
f6f6289578 | ||
|
|
10c0247a15 | ||
|
|
5a9b65e0d5 | ||
|
|
0de4e2a0ca | ||
|
|
03c15c8c30 | ||
|
|
66207073fd | ||
|
|
2044d462a3 | ||
|
|
7d46413f2a | ||
|
|
323bff9f28 | ||
|
|
9229e0dcec | ||
|
|
deb3cafa38 | ||
|
|
757e41040e | ||
|
|
20abf2d6dc | ||
|
|
a853f3570d | ||
|
|
f10b76835c | ||
|
|
036ab05a93 | ||
|
|
1206d39845 | ||
|
|
351cee52fb | ||
|
|
ec2ef498e7 | ||
|
|
002ec4f566 | ||
|
|
93d8908606 | ||
|
|
dedc1b9ab6 | ||
|
|
4e66fd6de9 | ||
|
|
91459e9301 | ||
|
|
51106874d4 | ||
|
|
76f812d897 | ||
|
|
1a344b1e74 | ||
|
|
46185c869b | ||
|
|
4c1e9f389f | ||
|
|
a08ccae05e | ||
|
|
2cd6d307d1 | ||
|
|
9d17d76695 | ||
|
|
ef164c371f | ||
|
|
23db2b1ecc | ||
|
|
4004acaee2 | ||
|
|
4ee8207f15 | ||
|
|
5b6b7dbee0 | ||
|
|
b34cda8d70 | ||
|
|
4aa444241d | ||
|
|
b6a59d30d1 | ||
|
|
e41ff005c0 | ||
|
|
ac52781a2e | ||
|
|
7ed164ff72 | ||
|
|
77cc30ff6f | ||
|
|
f81c5c94ce | ||
|
|
0825606ab0 | ||
|
|
9c51263310 | ||
|
|
0775b95d90 | ||
|
|
22c83c85fc | ||
|
|
1edb9195db | ||
|
|
b5104c0c89 | ||
|
|
ceb6bc55d8 | ||
|
|
ce1c466480 | ||
|
|
58ad666150 | ||
|
|
02df3c7449 | ||
|
|
a030c32b8b | ||
|
|
abe8664c56 | ||
|
|
14663be364 | ||
|
|
f1881230ab | ||
|
|
56139e9908 | ||
|
|
78daad84a0 | ||
|
|
0b84707351 | ||
|
|
6de505cc90 | ||
|
|
f7ea2cfef4 | ||
|
|
fd3f83bb00 | ||
|
|
00f74b0bd7 | ||
|
|
fc2feee502 | ||
|
|
b5236c3ffc | ||
|
|
a9bdde108b | ||
|
|
c3eeb3cfdf | ||
|
|
d7e2497bd8 | ||
|
|
ea9bb0c0cf | ||
|
|
20535e8b04 | ||
|
|
5a813f8683 | ||
|
|
9b3c781605 | ||
|
|
51f0c2c287 | ||
|
|
11fdd9ac86 | ||
|
|
b3923207e6 | ||
|
|
08a3caeb35 | ||
|
|
679a7ef89e | ||
|
|
2c955b8d16 | ||
|
|
f0672aa3f2 | ||
|
|
3bbe19427b | ||
|
|
2e85d98650 | ||
|
|
869d729e02 | ||
|
|
e05a9caa03 | ||
|
|
f7955a6aad | ||
|
|
2f66070106 | ||
|
|
f843f997be | ||
|
|
c5a4b03d66 | ||
|
|
89fa6b3d27 | ||
|
|
0bbff68c65 | ||
|
|
7fd09ede40 | ||
|
|
89e7aafeac | ||
|
|
c6ee520d85 | ||
|
|
83387bea9f | ||
|
|
05ebcc826e | ||
|
|
e35c759b55 | ||
|
|
eb7d4eafa4 | ||
|
|
dc48f38dda | ||
|
|
1d5268f756 | ||
|
|
685aa6b11c | ||
|
|
f78d40d2e7 | ||
|
|
6f47b367a0 | ||
|
|
94d5893c4e | ||
|
|
73640fe382 | ||
|
|
ec19812e77 | ||
|
|
da59afd476 | ||
|
|
020f0cbdab | ||
|
|
7ff182f0ed | ||
|
|
24730e2193 | ||
|
|
f85a68515e | ||
|
|
a29e342492 | ||
|
|
139f8f4f0e | ||
|
|
8b14ee6ffd | ||
|
|
2c38c97501 | ||
|
|
d2b65080ae | ||
|
|
7d174536d4 | ||
|
|
5959bc1fd3 | ||
|
|
994d5e1ba1 | ||
|
|
f64e6406c1 | ||
|
|
f72731aa62 | ||
|
|
5c5ef9ba0b | ||
|
|
fb8d9248f7 | ||
|
|
5259bc3faf | ||
|
|
29f1c5704a | ||
|
|
fb99616960 | ||
|
|
fbfa063d9e | ||
|
|
c0a33233ae | ||
|
|
623ddeb74c | ||
|
|
f65f82ab78 | ||
|
|
392afd77db | ||
|
|
97f7b356cf | ||
|
|
0bd59bf2ac | ||
|
|
09220c2134 | ||
|
|
e9b9ce423c | ||
|
|
c944050d9c | ||
|
|
5641dce2bd | ||
|
|
99e92dc4b8 | ||
|
|
e041b53b97 | ||
|
|
0f939dcf85 | ||
|
|
ceabd8f781 | ||
|
|
d76176123b | ||
|
|
0670f1e674 | ||
|
|
d721066f9e | ||
|
|
45da95bdb7 | ||
|
|
079faf0ee3 | ||
|
|
ff84aa98ad | ||
|
|
42f995d430 | ||
|
|
332735182e | ||
|
|
f4fd5878e1 | ||
|
|
6a453b2465 | ||
|
|
abbcf8daac | ||
|
|
b39fc8d1f9 | ||
|
|
01a7d467e5 | ||
|
|
b2a9072e42 | ||
|
|
56365d0982 | ||
|
|
433ee87c84 | ||
|
|
fdd6be12c7 | ||
|
|
b7c5f15d08 | ||
|
|
30722960fb | ||
|
|
8139d21f47 | ||
|
|
af714cfa43 | ||
|
|
cdb45c8fe3 | ||
|
|
86f8c4e9c9 | ||
|
|
60557d31fd | ||
|
|
a13e5d22df | ||
|
|
05560ff1a3 | ||
|
|
8e9aad3ea2 | ||
|
|
f3942ca6f5 | ||
|
|
0e4f565b27 | ||
|
|
1158d0905c | ||
|
|
12b1e8509f | ||
|
|
ca0370b497 | ||
|
|
9f0800d5ce | ||
|
|
4bccd8ae31 | ||
|
|
effb54c40c | ||
|
|
fbe1c51d35 | ||
|
|
2c515f242c | ||
|
|
053a7be054 | ||
|
|
1c8d5c5262 | ||
|
|
2ec81b77b9 | ||
|
|
c1109ddb7e | ||
|
|
d05bda8d6a | ||
|
|
95c24cbfea | ||
|
|
2ade716849 | ||
|
|
c7f648374e | ||
|
|
f20ec45ad3 | ||
|
|
2616fd41fe | ||
|
|
cc54572d3c | ||
|
|
74017a7bdf | ||
|
|
df747440d7 | ||
|
|
e902854330 | ||
|
|
3bf2494a17 | ||
|
|
4fc097778c | ||
|
|
48bc17d743 | ||
|
|
b168630314 | ||
|
|
584a77082c | ||
|
|
4864052c68 | ||
|
|
c50be8725c | ||
|
|
048fd21982 | ||
|
|
666b6d433d | ||
|
|
9789112fda | ||
|
|
247dbb4fb6 | ||
|
|
178dfc90ec | ||
|
|
3eed25e732 | ||
|
|
256c3fc3cf | ||
|
|
0e8f152200 | ||
|
|
66ca622a92 |
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
.github
|
||||||
|
.env.example
|
||||||
30
.env.example
30
.env.example
@@ -8,8 +8,24 @@
|
|||||||
NEXT_PUBLIC_LICENSE_CONSENT=
|
NEXT_PUBLIC_LICENSE_CONSENT=
|
||||||
LICENSE=
|
LICENSE=
|
||||||
|
|
||||||
BASE_URL=http://localhost:3000
|
# BASE_URL and NEXT_PUBLIC_APP_URL are both deprecated. Both are replaced with one variable, NEXT_PUBLIC_WEBAPP_URL
|
||||||
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
# BASE_URL=http://localhost:3000
|
||||||
|
# NEXT_PUBLIC_APP_URL=http://localhost:3000
|
||||||
|
|
||||||
|
NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
|
||||||
|
|
||||||
|
# Configure NEXTAUTH_URL manually if needed, otherwise it will resolve to {NEXT_PUBLIC_WEBAPP_URL}/api/auth
|
||||||
|
# NEXTAUTH_URL=http://localhost:3000/api/auth
|
||||||
|
|
||||||
|
# It is highly recommended that the NEXTAUTH_SECRET must be overridden and very unique
|
||||||
|
# Use `openssl rand -base64 32` to generate a key
|
||||||
|
NEXTAUTH_SECRET=secret
|
||||||
|
|
||||||
|
# Encryption key that will be used to encrypt CalDAV credentials, choose a random string, for example with `dd if=/dev/urandom bs=1K count=1 | md5sum`
|
||||||
|
CALENDSO_ENCRYPTION_KEY=secret
|
||||||
|
|
||||||
|
# Deprecation note: JWT_SECRET is no longer used
|
||||||
|
# JWT_SECRET=secret
|
||||||
|
|
||||||
POSTGRES_USER=unicorn_user
|
POSTGRES_USER=unicorn_user
|
||||||
POSTGRES_PASSWORD=magical_password
|
POSTGRES_PASSWORD=magical_password
|
||||||
@@ -18,8 +34,8 @@ DATABASE_HOST=database:5432
|
|||||||
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
|
||||||
GOOGLE_API_CREDENTIALS={}
|
GOOGLE_API_CREDENTIALS={}
|
||||||
|
|
||||||
# Remove this var if you don't want Calendso to collect anonymous usage
|
# Set this to '1' if you don't want Cal to collect anonymous usage
|
||||||
NEXT_PUBLIC_TELEMETRY_KEY=js.2pvs2bbpqq1zxna97wcml.oi2jzirnbj1ev4tc57c5r
|
CALCOM_TELEMETRY_DISABLED=
|
||||||
|
|
||||||
# Used for the Office 365 / Outlook.com Calendar integration
|
# Used for the Office 365 / Outlook.com Calendar integration
|
||||||
MS_GRAPH_CLIENT_ID=
|
MS_GRAPH_CLIENT_ID=
|
||||||
@@ -39,10 +55,4 @@ EMAIL_SERVER_PORT=587
|
|||||||
EMAIL_SERVER_USER=email_user
|
EMAIL_SERVER_USER=email_user
|
||||||
EMAIL_SERVER_PASSWORD=email_password
|
EMAIL_SERVER_PASSWORD=email_password
|
||||||
|
|
||||||
# Encryption key that will be used to encrypt CalDAV credentials, choose a random string, for example with `dd if=/dev/urandom bs=1K count=1 | md5sum`
|
|
||||||
CALENDSO_ENCRYPTION_KEY=
|
|
||||||
|
|
||||||
# It is highly recommended that the JWT secret must be overridden and very unique
|
|
||||||
JWT_SECRET=secret
|
|
||||||
|
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
|
|||||||
7
.github/dependabot.yml
vendored
Normal file
7
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
# Maintain dependencies for GitHub Actions
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
57
.github/workflows/create-release.yaml
vendored
Normal file
57
.github/workflows/create-release.yaml
vendored
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
name: "Create Release"
|
||||||
|
|
||||||
|
on: # yamllint disable-line rule:truthy
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
RELEASE_TAG:
|
||||||
|
description: 'v{Major}.{Minor}.{Patch}'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: "Release"
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout source
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.ACTIONS_ACCESS_TOKEN }}
|
||||||
|
submodules: true
|
||||||
|
|
||||||
|
- name: Create branch and tag submodule
|
||||||
|
run: |
|
||||||
|
git config user.email "actions@github.com"
|
||||||
|
git config user.name "actions-user"
|
||||||
|
git submodule update --init --remote
|
||||||
|
git checkout -b 'release-${{ inputs.RELEASE_TAG }}'
|
||||||
|
(cd calcom && git fetch --tags origin && git checkout 'refs/tags/${{ inputs.RELEASE_TAG }}')
|
||||||
|
git add calcom
|
||||||
|
git commit -m "tag version Cal.com version ${{ inputs.RELEASE_TAG }}"
|
||||||
|
git push origin 'release-${{ inputs.RELEASE_TAG }}'
|
||||||
|
|
||||||
|
- name: "Create release"
|
||||||
|
uses: "actions/github-script@v6"
|
||||||
|
with:
|
||||||
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
script: |
|
||||||
|
try {
|
||||||
|
const response = await github.rest.repos.createRelease({
|
||||||
|
draft: false,
|
||||||
|
generate_release_notes: true,
|
||||||
|
body: 'For Cal.com release details, see: https://github.com/calcom/cal.com/releases/tag/${{ inputs.RELEASE_TAG }}',
|
||||||
|
name: '${{ inputs.RELEASE_TAG }}',
|
||||||
|
target_commitish: 'release-${{ inputs.RELEASE_TAG }}',
|
||||||
|
owner: context.repo.owner,
|
||||||
|
prerelease: false,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
tag_name: '${{ inputs.RELEASE_TAG }}',
|
||||||
|
});
|
||||||
|
|
||||||
|
core.exportVariable('RELEASE_ID', response.data.id);
|
||||||
|
core.exportVariable('RELEASE_UPLOAD_URL', response.data.upload_url);
|
||||||
|
} catch (error) {
|
||||||
|
core.setFailed(error.message);
|
||||||
|
}
|
||||||
@@ -5,7 +5,10 @@ name: Build and push image to DockerHub
|
|||||||
# Controls when the workflow will run
|
# Controls when the workflow will run
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches:
|
||||||
|
- 'main'
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
# update on run of Update Calendso nightly submodule update
|
# update on run of Update Calendso nightly submodule update
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ["Update Calendso"]
|
workflows: ["Update Calendso"]
|
||||||
@@ -20,9 +23,6 @@ on:
|
|||||||
# release:
|
# release:
|
||||||
# types: [ created ]
|
# types: [ created ]
|
||||||
|
|
||||||
# # Allows you to run this workflow manually from the Actions tab
|
|
||||||
# workflow_dispatch:
|
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
# This workflow contains a single job called "build"
|
# This workflow contains a single job called "build"
|
||||||
@@ -33,14 +33,15 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- name: checkout
|
||||||
with:
|
uses: actions/checkout@v3
|
||||||
submodules: true
|
|
||||||
|
|
||||||
- name: Docker Login
|
- name: Git submodule update
|
||||||
# You may pin to the exact commit or the version.
|
run: |
|
||||||
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
|
git submodule update --init
|
||||||
uses: docker/login-action@v1.10.0
|
|
||||||
|
- name: Log in to the Docker Hub registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
# Username used to log against the Docker registry
|
# Username used to log against the Docker registry
|
||||||
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
@@ -49,22 +50,71 @@ jobs:
|
|||||||
# Log out from the Docker registry at the end of a job
|
# Log out from the Docker registry at the end of a job
|
||||||
logout: true # optional, default is true
|
logout: true # optional, default is true
|
||||||
|
|
||||||
- name: Set up Docker builder
|
- name: Log in to the Github Container registry
|
||||||
id: buildx
|
uses: docker/login-action@v2
|
||||||
uses: docker/setup-buildx-action@v1.6.0
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
images: |
|
||||||
|
docker.io/calendso/calendso
|
||||||
|
docker.io/calcom/cal.com
|
||||||
|
ghcr.io/calcom/cal.com
|
||||||
|
|
||||||
|
- name: Copy env
|
||||||
|
run: |
|
||||||
|
grep -o '^[^#]*' .env.example > .env
|
||||||
|
cat .env >> $GITHUB_ENV
|
||||||
|
echo "DATABASE_HOST=localhost:5432" >> $GITHUB_ENV
|
||||||
|
eval $(sed -e '/^#/d' -e 's/^/export /' -e 's/$/;/' .env) ;
|
||||||
|
|
||||||
|
# Temporarily disable ARM build due to runner performance issues
|
||||||
|
# - name: Set up QEMU
|
||||||
|
# uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
|
- name: Start database
|
||||||
|
run: |
|
||||||
|
docker compose up -d database
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
with:
|
||||||
|
driver-opts: |
|
||||||
|
network=container:database
|
||||||
|
buildkitd-flags: |
|
||||||
|
--allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
|
||||||
|
# config-inline: |
|
||||||
|
# [worker.oci]
|
||||||
|
# max-parallelism = 1
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: ./
|
context: ./
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
# The test image is /docker and is private. final image will be /calendso and public
|
platforms: linux/amd64
|
||||||
tags: docker.io/${{ secrets.DOCKER_HUB_USERNAME }}/calendso:latest
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
build-args: |
|
build-args: |
|
||||||
BASE_URL=http://localhost:3000
|
NEXT_PUBLIC_WEBAPP_URL=${{ env.NEXT_PUBLIC_WEBAPP_URL }}
|
||||||
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
NEXT_PUBLIC_LICENSE_CONSENT=${{ env.NEXT_PUBLIC_LICENSE_CONSENT }}
|
||||||
|
NEXT_PUBLIC_TELEMETRY_KEY=${{ env.NEXT_PUBLIC_TELEMETRY_KEY }}
|
||||||
|
DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }}
|
||||||
|
|
||||||
|
# - name: Build with docker compose
|
||||||
|
# run: |
|
||||||
|
# DOCKER_BUILDKIT=0 docker compose build --build-arg DATABASE_URL=postgresql://${{ env.POSTGRES_USER }}:${{ env.POSTGRES_PASSWORD }}@${{ env.DATABASE_HOST }}/${{ env.POSTGRES_DB }} calcom
|
||||||
|
|
||||||
|
- name: Cleanup
|
||||||
|
run: |
|
||||||
|
docker compose down
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
|
|||||||
14
.github/workflows/scarf-data-export.yml
vendored
Normal file
14
.github/workflows/scarf-data-export.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
name: Export Scarf data
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
export-scarf-data:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: docker://scarf.docker.scarf.sh/scarf-sh/scarf-postgres-exporter:latest
|
||||||
|
env:
|
||||||
|
SCARF_API_TOKEN: ${{ secrets.SCARF_API_TOKEN }}
|
||||||
|
SCARF_ENTITY_NAME: Calcom
|
||||||
|
PSQL_CONN_STRING: ${{ secrets.PSQL_CONN_STRING }}
|
||||||
4
.github/workflows/update-submodules.yml
vendored
4
.github/workflows/update-submodules.yml
vendored
@@ -13,11 +13,11 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Git submodule update
|
- name: Git submodule update
|
||||||
run: |
|
run: |
|
||||||
git submodule update --recursive --remote --init
|
git submodule update --remote --init
|
||||||
|
|
||||||
- name: Commit
|
- name: Commit
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -1,4 +1,4 @@
|
|||||||
[submodule "calendso"]
|
[submodule "calcom"]
|
||||||
path = calendso
|
path = calcom
|
||||||
url = https://github.com/calendso/calendso.git
|
url = https://github.com/calcom/cal.com.git
|
||||||
branch = main
|
branch = main
|
||||||
|
|||||||
92
Dockerfile
92
Dockerfile
@@ -1,40 +1,74 @@
|
|||||||
FROM node:14 as deps
|
FROM node:18 as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /calcom
|
||||||
COPY calendso/package.json calendso/yarn.lock ./
|
|
||||||
COPY calendso/prisma prisma
|
|
||||||
RUN yarn install --frozen-lockfile
|
|
||||||
|
|
||||||
FROM node:14 as builder
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
ARG BASE_URL
|
|
||||||
ARG NEXT_PUBLIC_APP_URL
|
|
||||||
ARG NEXT_PUBLIC_LICENSE_CONSENT
|
ARG NEXT_PUBLIC_LICENSE_CONSENT
|
||||||
ARG NEXT_PUBLIC_TELEMETRY_KEY
|
ARG CALCOM_TELEMETRY_DISABLED
|
||||||
ENV BASE_URL=$BASE_URL \
|
ARG DATABASE_URL
|
||||||
NEXT_PUBLIC_APP_URL=$NEXT_PUBLIC_APP_URL \
|
ARG NEXTAUTH_SECRET=secret
|
||||||
|
ARG CALENDSO_ENCRYPTION_KEY=secret
|
||||||
|
ARG MAX_OLD_SPACE_SIZE=4096
|
||||||
|
|
||||||
|
ENV NEXT_PUBLIC_WEBAPP_URL=http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER \
|
||||||
NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT \
|
NEXT_PUBLIC_LICENSE_CONSENT=$NEXT_PUBLIC_LICENSE_CONSENT \
|
||||||
NEXT_PUBLIC_TELEMETRY_KEY=$NEXT_PUBLIC_TELEMETRY_KEY
|
CALCOM_TELEMETRY_DISABLED=$CALCOM_TELEMETRY_DISABLED \
|
||||||
|
DATABASE_URL=$DATABASE_URL \
|
||||||
|
NEXTAUTH_SECRET=${NEXTAUTH_SECRET} \
|
||||||
|
CALENDSO_ENCRYPTION_KEY=${CALENDSO_ENCRYPTION_KEY} \
|
||||||
|
NODE_OPTIONS=--max-old-space-size=${MAX_OLD_SPACE_SIZE}
|
||||||
|
|
||||||
COPY calendso .
|
COPY calcom/package.json calcom/yarn.lock calcom/.yarnrc.yml calcom/playwright.config.ts calcom/turbo.json calcom/git-init.sh calcom/git-setup.sh ./
|
||||||
|
COPY calcom/.yarn ./.yarn
|
||||||
|
COPY calcom/apps/web ./apps/web
|
||||||
|
COPY calcom/packages ./packages
|
||||||
|
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
RUN yarn config set httpTimeout 1200000 && \
|
||||||
RUN yarn build && yarn install --production --ignore-scripts --prefer-offline
|
npx turbo prune --scope=@calcom/web --docker && \
|
||||||
|
yarn install && \
|
||||||
|
yarn db-deploy && \
|
||||||
|
yarn --cwd packages/prisma seed-app-store
|
||||||
|
|
||||||
|
RUN yarn turbo run build --filter=@calcom/web
|
||||||
|
|
||||||
|
# RUN yarn plugin import workspace-tools && \
|
||||||
|
# yarn workspaces focus --all --production
|
||||||
|
RUN rm -rf node_modules/.cache .yarn/cache apps/web/.next/cache
|
||||||
|
|
||||||
|
FROM node:18 as builder-two
|
||||||
|
|
||||||
|
WORKDIR /calcom
|
||||||
|
ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
|
||||||
|
|
||||||
FROM node:14 as runner
|
|
||||||
WORKDIR /app
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
COPY --from=builder /app/node_modules ./node_modules
|
COPY calcom/package.json calcom/.yarnrc.yml calcom/yarn.lock calcom/turbo.json ./
|
||||||
COPY --from=builder /app/prisma ./prisma
|
COPY calcom/.yarn ./.yarn
|
||||||
COPY --from=builder /app/scripts ./scripts
|
COPY --from=builder /calcom/node_modules ./node_modules
|
||||||
COPY --from=builder /app/next.config.js ./
|
COPY --from=builder /calcom/packages ./packages
|
||||||
COPY --from=builder /app/next-i18next.config.js ./
|
COPY --from=builder /calcom/apps/web ./apps/web
|
||||||
COPY --from=builder /app/public ./public
|
COPY --from=builder /calcom/packages/prisma/schema.prisma ./prisma/schema.prisma
|
||||||
COPY --from=builder /app/.next ./.next
|
COPY scripts scripts
|
||||||
COPY --from=builder /app/package.json ./package.json
|
|
||||||
COPY scripts scripts
|
|
||||||
|
|
||||||
|
# Save value used during this build stage. If NEXT_PUBLIC_WEBAPP_URL and BUILT_NEXT_PUBLIC_WEBAPP_URL differ at
|
||||||
|
# run-time, then start.sh will find/replace static values again.
|
||||||
|
ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
|
||||||
|
BUILT_NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL
|
||||||
|
|
||||||
|
RUN scripts/replace-placeholder.sh http://NEXT_PUBLIC_WEBAPP_URL_PLACEHOLDER ${NEXT_PUBLIC_WEBAPP_URL}
|
||||||
|
|
||||||
|
FROM node:18 as runner
|
||||||
|
|
||||||
|
|
||||||
|
WORKDIR /calcom
|
||||||
|
COPY --from=builder-two /calcom ./
|
||||||
|
ARG NEXT_PUBLIC_WEBAPP_URL=http://localhost:3000
|
||||||
|
ENV NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL \
|
||||||
|
BUILT_NEXT_PUBLIC_WEBAPP_URL=$NEXT_PUBLIC_WEBAPP_URL
|
||||||
|
|
||||||
|
ENV NODE_ENV production
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["/app/scripts/start.sh"]
|
|
||||||
|
HEALTHCHECK --interval=30s --timeout=30s --retries=5 \
|
||||||
|
CMD wget --spider http://localhost:3000 || exit 1
|
||||||
|
|
||||||
|
CMD ["/calcom/scripts/start.sh"]
|
||||||
1
Dockerfile.render
Normal file
1
Dockerfile.render
Normal file
@@ -0,0 +1 @@
|
|||||||
|
FROM calcom.docker.scarf.sh/calcom/cal.com
|
||||||
267
README.md
267
README.md
@@ -1,87 +1,274 @@
|
|||||||
<!-- PROJECT LOGO -->
|
<!-- PROJECT LOGO -->
|
||||||
<div align="right">
|
<p align="center">
|
||||||
<a href="https://github.com/calendso/calendso">
|
<a href="https://github.com/calcom/cal.com">
|
||||||
<img src="https://cal.com/logo.svg" alt="Logo" width="160" height="65">
|
<img src="https://user-images.githubusercontent.com/8019099/133430653-24422d2a-3c8d-4052-9ad6-0580597151ee.png" alt="Logo">
|
||||||
</a><br/>
|
|
||||||
<a href="https://cal.com">Website</a>
|
</a>
|
||||||
·
|
|
||||||
<a href="https://github.com/calendso/calendso-docker/issues">Community Support</a>
|
<h3 align="center">Cal.com (formerly Calendso)</h3>
|
||||||
</div>
|
|
||||||
|
<p align="center">
|
||||||
|
The open-source Calendly alternative. (Docker Edition)
|
||||||
|
<br />
|
||||||
|
<a href="https://cal.com"><strong>Learn more »</strong></a>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<a href="https://cal.com/slack">Slack</a>
|
||||||
|
·
|
||||||
|
<a href="https://cal.com">Website</a>
|
||||||
|
·
|
||||||
|
<a href="https://github.com/calcom/cal.com/issues">Core Cal.com related Issues</a>
|
||||||
|
·
|
||||||
|
<a href="https://github.com/calcom/docker/issues">Docker specific Issues</a>
|
||||||
|
·
|
||||||
|
<a href="https://cal.com/roadmap">Roadmap</a>
|
||||||
|
</p>
|
||||||
|
</p>
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
|
|
||||||
This image can be found on DockerHub at [https://hub.docker.com/repository/docker/calendso/calendso](https://hub.docker.com/repository/docker/calendso/calendso)
|
This image can be found on DockerHub at [https://hub.docker.com/r/calcom/cal.com](https://hub.docker.com/r/calcom/cal.com)
|
||||||
|
|
||||||
The Docker configuration for Calendso is an effort powered by people within the community. Calendso does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
|
The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not yet provide official support for Docker, but we will accept fixes and documentation at this time. Use at your own risk.
|
||||||
|
|
||||||
## Important Notes
|
## Important Notes
|
||||||
|
|
||||||
This Docker Image is managed by the Calendso Community. Support for this image can be found via the repository, located at [https://github.com/calendso/docker](https://github.com/calendso/docker)
|
This Docker Image is managed by the Cal.com Community. Join the team [here](https://github.com/calcom/docker/discussions/32). Support for this image can be found via the repository, located at [https://github.com/calcom/docker](https://github.com/calcom/docker)
|
||||||
|
|
||||||
Currently, this image is intended for local development/evaluation use only, as there are specific requirements for providing environmental variables at build-time in order to specify a non-localhost BASE_URL. (this is due to the nature of the static site compilation, which embeds the variable values). The ability to update these variables at runtime is in-progress and will be available in the future.
|
**Currently, this image is intended for local development/evaluation use only, as there are specific requirements for providing environmental variables at build-time in order to specify a non-localhost BASE_URL. (this is due to the nature of the static site compilation, which embeds the variable values). The ability to update these variables at runtime is in-progress and will be available in the future.**
|
||||||
|
|
||||||
For Production, for the time being, please checkout the repository and build/push your own image privately.
|
For Production, for the time being, please checkout the repository and build/push your own image privately.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Make sure you have `docker` & `docker-compose` installed on the server / system.
|
Make sure you have `docker` & `docker compose` installed on the server / system. Both are installed by most docker utilities, including Docker Desktop and Rancher Desktop.
|
||||||
|
|
||||||
## Getting Started
|
Note: `docker compose` without the hyphen is now the primary method of using docker-compose, per the Docker documentation.
|
||||||
|
|
||||||
1. Clone calendso-docker
|
## (Most users) Running Cal.com with Docker Compose
|
||||||
|
|
||||||
|
If you are evaluating Cal.com or running with minimal to no modifications, this option is for you.
|
||||||
|
|
||||||
|
1. Clone calcom/docker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone --recursive https://github.com/calendso/docker.git calendso-docker
|
git clone https://github.com/calcom/docker.git
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Change into the directory
|
2. Change into the directory
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd calendso-docker
|
cd docker
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Rename `.env.example` to `.env` and update `.env` if needed.
|
3. Prepare your configuration: Rename `.env.example` to `.env` and then update `.env`
|
||||||
|
|
||||||
4. Build and start calendso
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose up --build
|
cp .env.example .env
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Start prisma studio
|
Most configurations can be left as-is, but for configuration options see [Important Run-time variables](#important-run-time-variables) below.
|
||||||
|
|
||||||
|
Update the appropriate values in your .env file, then proceed.
|
||||||
|
|
||||||
|
4. (optional) Pre-Pull the images by running the following command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker-compose exec calendso npx prisma studio
|
docker compose pull
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Open a browser to [http://localhost:5555](http://localhost:5555) to look at or modify the database content.
|
This will use the default image locations as specified by `image:` in the docker-compose.yaml file.
|
||||||
|
|
||||||
7. Click on the `User` model to add a new user record.
|
Note: To aid with support, by default Scarf.sh is used as registry proxy for download metrics.
|
||||||
|
|
||||||
8. Fill out the fields (remembering to encrypt your password with [BCrypt](https://bcrypt-generator.com/)) and click `Save 1 Record` to create your first user.
|
5. Start Cal.com via docker compose
|
||||||
|
|
||||||
9. Open a browser to [http://localhost:3000](http://localhost:3000) and login with your just created, first user.
|
(Most basic users, and for First Run) To run the complete stack, which includes a local Postgres database, Cal.com web app, and Prisma Studio:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
To run Cal.com web app and Prisma Studio against a remote database, ensure that DATABASE_URL is configured for an available database and run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d calcom studio
|
||||||
|
```
|
||||||
|
|
||||||
|
To run only the Cal.com web app, ensure that DATABASE_URL is configured for an available database and run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d calcom
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note: to run in attached mode for debugging, remove `-d` from your desired run command.**
|
||||||
|
|
||||||
|
6. Open a browser to [http://localhost:3000](http://localhost:3000), or your defined NEXT_PUBLIC_WEBAPP_URL. The first time you run Cal.com, a setup wizard will initialize. Define your first user, and you're ready to go!
|
||||||
|
|
||||||
|
## Updating Cal.com
|
||||||
|
|
||||||
|
1. Stop the Cal.com stack
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose down
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Pull the latest changes
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose pull
|
||||||
|
```
|
||||||
|
3. Update env vars as necessary.
|
||||||
|
4. Re-start the Cal.com stack
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
## (Advanced users) Build and Run Cal.com
|
||||||
|
|
||||||
|
1. Clone calcom/docker
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/calcom/docker.git calcom-docker
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Change into the directory
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd calcom-docker
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Update the calcom submodule.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git submodule update --remote --init
|
||||||
|
```
|
||||||
|
|
||||||
|
Note: DO NOT use recursive submodule update, otherwise you will receive a git authentication error.
|
||||||
|
|
||||||
|
4. Rename `.env.example` to `.env` and then update `.env`
|
||||||
|
|
||||||
|
For configuration options see [Build-time variables](#build-time-variables) below. Update the appropriate values in your .env file, then proceed.
|
||||||
|
|
||||||
|
5. Build the Cal.com docker image:
|
||||||
|
|
||||||
|
Note: Due to application configuration requirements, an available database is currently required during the build process.
|
||||||
|
|
||||||
|
a) If hosting elsewhere, configure the `DATABASE_URL` in the .env file, and skip the next step
|
||||||
|
|
||||||
|
b) If a local or temporary database is required, start a local database via docker compose.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d database
|
||||||
|
```
|
||||||
|
|
||||||
|
6. Build Cal.com via docker compose (DOCKER_BUILDKIT=0 must be provided to allow a network bridge to be used at build time. This requirement will be removed in the future)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
DOCKER_BUILDKIT=0 docker compose build calcom
|
||||||
|
```
|
||||||
|
|
||||||
|
7. Start Cal.com via docker compose
|
||||||
|
|
||||||
|
(Most basic users, and for First Run) To run the complete stack, which includes a local Postgres database, Cal.com web app, and Prisma Studio:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
To run Cal.com web app and Prisma Studio against a remote database, ensure that DATABASE_URL is configured for an available database and run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d calcom studio
|
||||||
|
```
|
||||||
|
|
||||||
|
To run only the Cal.com web app, ensure that DATABASE_URL is configured for an available database and run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose up -d calcom
|
||||||
|
```
|
||||||
|
|
||||||
|
**Note: to run in attached mode for debugging, remove `-d` from your desired run command.**
|
||||||
|
|
||||||
|
8. Open a browser to [http://localhost:3000](http://localhost:3000), or your defined NEXT_PUBLIC_WEBAPP_URL. The first time you run Cal.com, a setup wizard will initialize. Define your first user, and you're ready to go!
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
### Important Run-time variables
|
||||||
|
|
||||||
|
These variables must also be provided at runtime
|
||||||
|
|
||||||
|
| Variable | Description | Required | Default |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| CALCOM_LICENSE_KEY | Enterprise License Key | optional | |
|
||||||
|
| NEXT_PUBLIC_WEBAPP_URL | Base URL of the site. NOTE: if this value differs from the value used at build-time, there will be a slight delay during container start (to update the statically built files). | optional | `http://localhost:3000` |
|
||||||
|
| NEXTAUTH_URL | Location of the auth server. By default, this is the Cal.com docker instance itself. | optional | `{NEXT_PUBLIC_WEBAPP_URL}/api/auth` |
|
||||||
|
| NEXTAUTH_SECRET | must match build variable | required | `secret` |
|
||||||
|
| CALENDSO_ENCRYPTION_KEY | must match build variable | required | `secret` |
|
||||||
|
| DATABASE_URL | database url with credentials | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
|
||||||
|
|
||||||
|
### Build-time variables
|
||||||
|
|
||||||
|
If building the image yourself, these variables must be provided at the time of the docker build, and can be provided by updating the .env file. Currently, if you require changes to these variables, you must follow the instructions to build and publish your own image.
|
||||||
|
|
||||||
|
Updating these variables is not required for evaluation, but is required for running in production. Instructions for generating variables can be found in the [cal.com instructions](https://github.com/calcom/cal.com)
|
||||||
|
|
||||||
|
| Variable | Description | Required | Default |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| NEXT_PUBLIC_WEBAPP_URL | Base URL injected into static files | optional | `http://localhost:3000` |
|
||||||
|
| NEXT_PUBLIC_LICENSE_CONSENT | license consent - true/false | | |
|
||||||
|
| CALCOM_TELEMETRY_DISABLED | Allow cal.com to collect anonymous usage data (set to `1` to disable) | | |
|
||||||
|
| DATABASE_URL | database url with credentials | required | `postgresql://unicorn_user:magical_password@database:5432/calendso` |
|
||||||
|
| NEXTAUTH_SECRET | Cookie encryption key | required | `secret` |
|
||||||
|
| CALENDSO_ENCRYPTION_KEY | Authentication encryption key | required | `secret` |
|
||||||
|
|
||||||
## Git Submodules
|
## Git Submodules
|
||||||
|
|
||||||
This repository uses a git submodule.
|
This repository uses a git submodule.
|
||||||
|
|
||||||
If you cloned the repository without using `--recursive`, then you can initialize and clone the submodule with the following steps.
|
For users building their own images, to update the calcom submodule, use the following command:
|
||||||
|
|
||||||
1. Init the submodule
|
```bash
|
||||||
|
git submodule update --remote --init
|
||||||
```bash
|
```
|
||||||
git submodule init
|
|
||||||
```
|
|
||||||
|
|
||||||
2. Update the submodule
|
|
||||||
|
|
||||||
```bash
|
|
||||||
git submodule update --remote
|
|
||||||
```
|
|
||||||
|
|
||||||
For more advanced usage, please refer to the git documentation: [https://git-scm.com/book/en/v2/Git-Tools-Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
|
For more advanced usage, please refer to the git documentation: [https://git-scm.com/book/en/v2/Git-Tools-Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
* SSL edge termination: If running behind a load balancer which handles SSL certificates, you will need to add the environmental variable `NODE_TLS_REJECT_UNAUTHORIZED=0` to prevent requests from being rejected. Only do this if you know what you are doing and trust the services/load-balancers directing traffic to your service.
|
### SSL edge termination
|
||||||
|
|
||||||
|
If running behind a load balancer which handles SSL certificates, you will need to add the environmental variable `NODE_TLS_REJECT_UNAUTHORIZED=0` to prevent requests from being rejected. Only do this if you know what you are doing and trust the services/load-balancers directing traffic to your service.
|
||||||
|
|
||||||
|
### Failed to commit changes: Invalid 'prisma.user.create()'
|
||||||
|
|
||||||
|
Certain versions may have trouble creating a user if the field `metadata` is empty. Using an empty json object `{}` as the field value should resolve this issue. Also, the `id` field will autoincrement, so you may also try leaving the value of `id` as empty.
|
||||||
|
|
||||||
|
### CLIENT_FETCH_ERROR
|
||||||
|
|
||||||
|
If you experience this error, it may be the way the default Auth callback in the server is using the WEBAPP_URL as a base url. The container does not necessarily have access to the same DNS as your local machine, and therefor needs to be configured to resolve to itself. You may be able to correct this by configuring `NEXTAUTH_URL=http://localhost:3000/api/auth`, to help the backend loop back to itself.
|
||||||
|
```
|
||||||
|
docker-calcom-1 | @calcom/web:start: [next-auth][error][CLIENT_FETCH_ERROR]
|
||||||
|
docker-calcom-1 | @calcom/web:start: https://next-auth.js.org/errors#client_fetch_error request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost {
|
||||||
|
docker-calcom-1 | @calcom/web:start: error: {
|
||||||
|
docker-calcom-1 | @calcom/web:start: message: 'request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost',
|
||||||
|
docker-calcom-1 | @calcom/web:start: stack: 'FetchError: request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost\n' +
|
||||||
|
docker-calcom-1 | @calcom/web:start: ' at ClientRequest.<anonymous> (/calcom/node_modules/next/dist/compiled/node-fetch/index.js:1:65756)\n' +
|
||||||
|
docker-calcom-1 | @calcom/web:start: ' at ClientRequest.emit (node:events:513:28)\n' +
|
||||||
|
docker-calcom-1 | @calcom/web:start: ' at ClientRequest.emit (node:domain:489:12)\n' +
|
||||||
|
docker-calcom-1 | @calcom/web:start: ' at Socket.socketErrorListener (node:_http_client:494:9)\n' +
|
||||||
|
docker-calcom-1 | @calcom/web:start: ' at Socket.emit (node:events:513:28)\n' +
|
||||||
|
docker-calcom-1 | @calcom/web:start: ' at Socket.emit (node:domain:489:12)\n' +
|
||||||
|
docker-calcom-1 | @calcom/web:start: ' at emitErrorNT (node:internal/streams/destroy:157:8)\n' +
|
||||||
|
docker-calcom-1 | @calcom/web:start: ' at emitErrorCloseNT (node:internal/streams/destroy:122:3)\n' +
|
||||||
|
docker-calcom-1 | @calcom/web:start: ' at processTicksAndRejections (node:internal/process/task_queues:83:21)',
|
||||||
|
docker-calcom-1 | @calcom/web:start: name: 'FetchError'
|
||||||
|
docker-calcom-1 | @calcom/web:start: },
|
||||||
|
docker-calcom-1 | @calcom/web:start: url: 'http://testing.localhost:3000/api/auth/session',
|
||||||
|
docker-calcom-1 | @calcom/web:start: message: 'request to http://testing.localhost:3000/api/auth/session failed, reason: getaddrinfo ENOTFOUND testing.localhost'
|
||||||
|
docker-calcom-1 | @calcom/web:start: }
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
<img referrerpolicy="no-referrer-when-downgrade" src="https://static.scarf.sh/a.png?x-pxid=81cda9f7-a102-453b-ac01-51c35650bd70" />
|
||||||
|
|||||||
38
SECURITY.md
Normal file
38
SECURITY.md
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
# Security
|
||||||
|
Contact: security@cal.com
|
||||||
|
|
||||||
|
Based on [https://supabase.com/.well-known/security.txt](https://supabase.com/.well-known/security.txt)
|
||||||
|
|
||||||
|
At Cal.com, we consider the security of our systems a top priority. But no matter how much effort we put into system security, there can still be vulnerabilities present.
|
||||||
|
|
||||||
|
If you discover a vulnerability, we would like to know about it so we can take steps to address it as quickly as possible. We would like to ask you to help us better protect our clients and our systems.
|
||||||
|
|
||||||
|
## Out of scope vulnerabilities:
|
||||||
|
|
||||||
|
* Clickjacking on pages with no sensitive actions.
|
||||||
|
* Unauthenticated/logout/login CSRF.
|
||||||
|
* Attacks requiring MITM or physical access to a user's device.
|
||||||
|
* Any activity that could lead to the disruption of our service (DoS).
|
||||||
|
* Content spoofing and text injection issues without showing an attack vector/without being able to modify HTML/CSS.
|
||||||
|
* Email spoofing
|
||||||
|
* Missing DNSSEC, CAA, CSP headers
|
||||||
|
* Lack of Secure or HTTP only flag on non-sensitive cookies
|
||||||
|
* Deadlinks
|
||||||
|
|
||||||
|
## Please do the following:
|
||||||
|
|
||||||
|
* E-mail your findings to [security@cal.com](mailto:security@cal.com).
|
||||||
|
* Do not run automated scanners on our infrastructure or dashboard. If you wish to do this, contact us and we will set up a sandbox for you.
|
||||||
|
* Do not take advantage of the vulnerability or problem you have discovered, for example by downloading more data than necessary to demonstrate the vulnerability or deleting or modifying other people's data,
|
||||||
|
* Do not reveal the problem to others until it has been resolved,
|
||||||
|
* Do not use attacks on physical security, social engineering, distributed denial of service, spam or applications of third parties,
|
||||||
|
* Do provide sufficient information to reproduce the problem, so we will be able to resolve it as quickly as possible. Usually, the IP address or the URL of the affected system and a description of the vulnerability will be sufficient, but complex vulnerabilities may require further explanation.
|
||||||
|
|
||||||
|
## What we promise:
|
||||||
|
|
||||||
|
* We will respond to your report within 3 business days with our evaluation of the report and an expected resolution date,
|
||||||
|
* If you have followed the instructions above, we will not take any legal action against you in regard to the report,
|
||||||
|
* We will handle your report with strict confidentiality, and not pass on your personal details to third parties without your permission,
|
||||||
|
* We will keep you informed of the progress towards resolving the problem,
|
||||||
|
* In the public information concerning the problem reported, we will give your name as the discoverer of the problem (unless you desire otherwise), and
|
||||||
|
* We strive to resolve all problems as quickly as possible, and we would like to play an active role in the ultimate publication on the problem after it is resolved.
|
||||||
1
calcom
Submodule
1
calcom
Submodule
Submodule calcom added at ad4d71d8c0
1
calendso
1
calendso
Submodule calendso deleted from 09c4040ce5
@@ -1,15 +1,17 @@
|
|||||||
# Use postgres/example user/password credentials
|
# Use postgres/example user/password credentials
|
||||||
version: '3.1'
|
version: '3.8'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
database-data:
|
database-data:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
stack:
|
stack:
|
||||||
|
name: stack
|
||||||
external: false
|
external: false
|
||||||
|
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
|
container_name: database
|
||||||
image: postgres
|
image: postgres
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
@@ -18,16 +20,19 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- stack
|
- stack
|
||||||
|
|
||||||
calendso:
|
calcom:
|
||||||
|
image: calcom.docker.scarf.sh/calcom/cal.com
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
- BASE_URL=${BASE_URL}
|
NEXT_PUBLIC_WEBAPP_URL: ${NEXT_PUBLIC_WEBAPP_URL}
|
||||||
- NEXT_PUBLIC_APP_URL=${NEXT_PUBLIC_APP_URL}
|
NEXT_PUBLIC_LICENSE_CONSENT: ${NEXT_PUBLIC_LICENSE_CONSENT}
|
||||||
- NEXT_PUBLIC_LICENSE_CONSENT=${NEXT_PUBLIC_LICENSE_CONSENT}
|
CALCOM_TELEMETRY_DISABLED: ${CALCOM_TELEMETRY_DISABLED}
|
||||||
- NEXT_PUBLIC_TELEMETRY_KEY=${NEXT_PUBLIC_TELEMETRY_KEY}
|
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
|
||||||
image: calendso/calendso:latest
|
CALENDSO_ENCRYPTION_KEY: ${CALENDSO_ENCRYPTION_KEY}
|
||||||
|
DATABASE_URL: ${DATABASE_URL}
|
||||||
|
network: stack
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- stack
|
- stack
|
||||||
@@ -41,7 +46,7 @@ services:
|
|||||||
|
|
||||||
# Optional use of Prisma Studio. In production, comment out or remove the section below to prevent unwanted access to your database.
|
# Optional use of Prisma Studio. In production, comment out or remove the section below to prevent unwanted access to your database.
|
||||||
studio:
|
studio:
|
||||||
image: calendso/calendso:latest
|
image: calcom.docker.scarf.sh/calcom/cal.com
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
- stack
|
- stack
|
||||||
|
|||||||
26
render.yaml
Normal file
26
render.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
services:
|
||||||
|
- type: web
|
||||||
|
name: cal-web
|
||||||
|
plan: standard
|
||||||
|
repo: https://github.com/calcom/docker.git
|
||||||
|
dockerfilePath: ./Dockerfile.render
|
||||||
|
env: docker
|
||||||
|
envVars:
|
||||||
|
|
||||||
|
- key: DATABASE_URL
|
||||||
|
fromDatabase:
|
||||||
|
name: cal-postgres
|
||||||
|
property: connectionString
|
||||||
|
|
||||||
|
- key: CALENDSO_ENCRYPTION_KEY
|
||||||
|
value: secret
|
||||||
|
|
||||||
|
- key: NEXTAUTH_SECRET
|
||||||
|
value: secret
|
||||||
|
|
||||||
|
- key: CRON_API_KEY
|
||||||
|
value: 0cc0e6c35519bba620c9360cfe3e68d0
|
||||||
|
|
||||||
|
databases:
|
||||||
|
- name: cal-postgres
|
||||||
|
plan: starter
|
||||||
16
scripts/replace-placeholder.sh
Executable file
16
scripts/replace-placeholder.sh
Executable file
@@ -0,0 +1,16 @@
|
|||||||
|
FROM=$1
|
||||||
|
TO=$2
|
||||||
|
|
||||||
|
if [ "${FROM}" = "${TO}" ]; then
|
||||||
|
echo "Nothing to replace, the value is already set to ${TO}."
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Only peform action if $FROM and $TO are different.
|
||||||
|
echo "Replacing all statically built instances of $FROM with $TO."
|
||||||
|
|
||||||
|
find apps/web/.next/ apps/web/public -type f |
|
||||||
|
while read file; do
|
||||||
|
sed -i "s|$FROM|$TO|g" "$file"
|
||||||
|
done
|
||||||
@@ -1,6 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
/app/scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
|
# Replace the statically built BUILT_NEXT_PUBLIC_WEBAPP_URL with run-time NEXT_PUBLIC_WEBAPP_URL
|
||||||
npx prisma migrate deploy
|
# NOTE: if these values are the same, this will be skipped.
|
||||||
|
scripts/replace-placeholder.sh "$BUILT_NEXT_PUBLIC_WEBAPP_URL" "$NEXT_PUBLIC_WEBAPP_URL"
|
||||||
|
|
||||||
|
scripts/wait-for-it.sh ${DATABASE_HOST} -- echo "database is up"
|
||||||
|
npx prisma migrate deploy --schema /calcom/packages/prisma/schema.prisma
|
||||||
|
npx ts-node --transpile-only /calcom/packages/prisma/seed-app-store.ts
|
||||||
yarn start
|
yarn start
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ wait_for() {
|
|||||||
;;
|
;;
|
||||||
wget)
|
wget)
|
||||||
if ! command -v wget >/dev/null; then
|
if ! command -v wget >/dev/null; then
|
||||||
echoerr 'nc command is missing!'
|
echoerr 'wget command is missing!'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user