This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
214 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM samtolmay/lowdefy | ||
|
||
COPY --chown=node:node ./.lowdefy/build /home/node/lowdefy/build | ||
|
||
CMD ["node", "/home/node/lowdefy/dist/server.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Config in image | ||
|
||
``` | ||
lowdefy build | ||
``` | ||
|
||
``` | ||
docker build . -t <tag-name> | ||
``` | ||
|
||
``` | ||
docker run -p 443:443 <tag-name> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
lowdefy: 3.16.5 | ||
name: Lowdefy starter | ||
|
||
pages: | ||
- id: welcome | ||
type: PageHeaderMenu | ||
properties: | ||
title: Welcome | ||
areas: | ||
content: | ||
justify: center | ||
blocks: | ||
- id: content_card | ||
type: Card | ||
style: | ||
maxWidth: 800 | ||
blocks: | ||
- id: content | ||
type: Result | ||
properties: | ||
title: Docker example | ||
subTitle: Config in image | ||
icon: | ||
name: HeartTwoTone | ||
color: '#f00' | ||
areas: | ||
extra: | ||
blocks: | ||
- id: docs_button | ||
type: Button | ||
properties: | ||
size: large | ||
title: Let's build something | ||
color: '#1890ff' | ||
events: | ||
onClick: | ||
- id: link_to_docs | ||
type: Link | ||
params: | ||
url: https://docs.lowdefy.com | ||
newWindow: true | ||
footer: | ||
blocks: | ||
- id: footer | ||
type: Paragraph | ||
properties: | ||
type: secondary | ||
content: | | ||
Made by a Lowdefy 🤖 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Config in volume | ||
|
||
``` | ||
lowdefy build | ||
``` | ||
|
||
``` | ||
docker run \ | ||
-p 443:443 \ | ||
--name lowdefy \ | ||
--mount type=volume,source=lowdefy-build,destination=/home/node/lowdefy/volumes/build \ | ||
-e LOWDEFY_SERVER_CONFIGURATION_PATH=/home/node/lowdefy/volumes/build \ | ||
<tag-name> | ||
``` | ||
|
||
``` | ||
docker cp ./.lowdefy/build lowdefy:/home/node/lowdefy/volumes/build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
lowdefy: 3.16.5 | ||
name: Lowdefy starter | ||
|
||
pages: | ||
- id: welcome | ||
type: PageHeaderMenu | ||
properties: | ||
title: Welcome | ||
areas: | ||
content: | ||
justify: center | ||
blocks: | ||
- id: content_card | ||
type: Card | ||
style: | ||
maxWidth: 800 | ||
blocks: | ||
- id: content | ||
type: Result | ||
properties: | ||
title: Docker example | ||
subTitle: Config in volume | ||
icon: | ||
name: HeartTwoTone | ||
color: '#f00' | ||
areas: | ||
extra: | ||
blocks: | ||
- id: docs_button | ||
type: Button | ||
properties: | ||
size: large | ||
title: Let's build something | ||
color: '#1890ff' | ||
events: | ||
onClick: | ||
- id: link_to_docs | ||
type: Link | ||
params: | ||
url: https://docs.lowdefy.com | ||
newWindow: true | ||
footer: | ||
blocks: | ||
- id: footer | ||
type: Paragraph | ||
properties: | ||
type: secondary | ||
content: | | ||
Made by a Lowdefy 🤖 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM samtolmay/lowdefy | ||
|
||
COPY --chown=node:node ./.lowdefy/build /home/node/lowdefy/build | ||
|
||
CMD ["node", "/home/node/lowdefy/dist/server.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Docker compose, config in image | ||
|
||
``` | ||
lowdefy build | ||
``` | ||
|
||
``` | ||
docker compose build | ||
``` | ||
|
||
``` | ||
docker compose up | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: "3.8" | ||
services: | ||
lowdefy: | ||
build: . | ||
ports: | ||
- "443:443" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
lowdefy: 3.16.5 | ||
name: Lowdefy starter | ||
|
||
pages: | ||
- id: welcome | ||
type: PageHeaderMenu | ||
properties: | ||
title: Welcome | ||
areas: | ||
content: | ||
justify: center | ||
blocks: | ||
- id: content_card | ||
type: Card | ||
style: | ||
maxWidth: 800 | ||
blocks: | ||
- id: content | ||
type: Result | ||
properties: | ||
title: Docker example | ||
subTitle: Docker compose - config in image | ||
icon: | ||
name: HeartTwoTone | ||
color: '#f00' | ||
areas: | ||
extra: | ||
blocks: | ||
- id: docs_button | ||
type: Button | ||
properties: | ||
size: large | ||
title: Let's build something | ||
color: '#1890ff' | ||
events: | ||
onClick: | ||
- id: link_to_docs | ||
type: Link | ||
params: | ||
url: https://docs.lowdefy.com | ||
newWindow: true | ||
footer: | ||
blocks: | ||
- id: footer | ||
type: Paragraph | ||
properties: | ||
type: secondary | ||
content: | | ||
Made by a Lowdefy 🤖 | ||