-
Notifications
You must be signed in to change notification settings - Fork 10
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
1 parent
c1e1521
commit f55f1e5
Showing
11 changed files
with
194 additions
and
50 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,16 @@ | ||
FROM node:18-alpine as runner | ||
|
||
WORKDIR /app | ||
|
||
ENV PORT 3000 | ||
ENV NODE_ENV production | ||
|
||
RUN addgroup --system --gid 1001 nodejs | ||
RUN adduser --system --uid 1001 nodejs | ||
|
||
COPY --chown=nodejs:nodejs ./dist/apps/assets ./ | ||
|
||
USER nodejs | ||
EXPOSE 3000 | ||
|
||
CMD node main.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
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
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,15 @@ | ||
FROM node:18-alpine as runner | ||
|
||
WORKDIR /app | ||
|
||
ENV NODE_ENV production | ||
# requires NOTION_TOKEN | ||
|
||
RUN addgroup --system --gid 1001 nodejs | ||
RUN adduser --system --uid 1001 nodejs | ||
|
||
COPY --chown=nodejs:nodejs ./dist/apps/crons ./ | ||
|
||
USER nodejs | ||
|
||
CMD node main.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
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
This file was deleted.
Oops, something went wrong.
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,102 @@ | ||
version: '3.9' | ||
services: | ||
caddy: | ||
container_name: caddy | ||
image: ghcr.io/n8maninger/docker-caddy-cloudflare:master | ||
restart: unless-stopped | ||
network_mode: host | ||
environment: | ||
CADDY_CLOUDFLARE_TOKEN: ${CADDY_CLOUDFLARE_TOKEN} | ||
ports: | ||
- 80:80 | ||
- 443:443 | ||
volumes: | ||
- /home/debian/projects/web/server/Caddyfile:/etc/caddy/Caddyfile | ||
- /home/debian/docker/caddy/data:/data | ||
- /home/debian/docker/caddy/config:/config | ||
web-website: | ||
image: ghcr.io/siafoundation/web-website | ||
container_name: web-website | ||
ports: | ||
- 3001:3000 | ||
environment: | ||
GITHUB_TOKEN: ${GITHUB_TOKEN} | ||
NOTION_TOKEN: ${NOTION_TOKEN} | ||
volumes: | ||
- /home/debian/assets:/assets | ||
restart: unless-stopped | ||
web-website-beta: | ||
image: ghcr.io/siafoundation/web-website | ||
container_name: web-website-beta | ||
ports: | ||
- 3009:3000 | ||
environment: | ||
GITHUB_TOKEN: ${GITHUB_TOKEN} | ||
NOTION_TOKEN: ${NOTION_TOKEN} | ||
volumes: | ||
- /home/debian/assets:/assets | ||
restart: unless-stopped | ||
web-assets: | ||
image: siafoundation/web-assets:latest | ||
volumes: | ||
- /home/debian/assets:/assets | ||
ports: | ||
- 3002:3000 | ||
web-crons: | ||
image: siafoundation/web-crons:latest | ||
volumes: | ||
- /home/debian/assets:/assets | ||
environment: | ||
NOTION_TOKEN: ${NOTION_TOKEN} | ||
web-hostd: | ||
image: ghcr.io/siafoundation/web-hostd | ||
container_name: web-hostd | ||
ports: | ||
- 3006:3000 | ||
restart: unless-stopped | ||
web-renterd: | ||
image: ghcr.io/siafoundation/web-renterd | ||
container_name: web-renterd | ||
ports: | ||
- 3007:3000 | ||
restart: unless-stopped | ||
web-walletd: | ||
image: ghcr.io/siafoundation/web-walletd | ||
container_name: web-walletd | ||
ports: | ||
- 3008:3000 | ||
restart: unless-stopped | ||
web-explorer: | ||
image: ghcr.io/siafoundation/web-explorer | ||
container_name: web-explorer | ||
ports: | ||
- 3003:3000 | ||
restart: unless-stopped | ||
web-explorer-beta: | ||
image: siafoundation/web-explorer | ||
container_name: web-explorer-beta | ||
ports: | ||
- 5005:3000 | ||
restart: unless-stopped | ||
web-explorer-testnet-zen: | ||
image: ghcr.io/siafoundation/web-explorer-testnet-zen | ||
container_name: web-explorer-testnet-zen | ||
ports: | ||
- 3005:3000 | ||
restart: unless-stopped | ||
host-revenue-api: | ||
image: ghcr.io/siafoundation/host-revenue-api:master | ||
container_name: host-revenue-api | ||
restart: unless-stopped | ||
ports: | ||
- 10005:9980 | ||
volumes: | ||
- /home/debian/docker/host-revenue-api:/data | ||
host-revenue-api-zen: | ||
image: ghcr.io/siafoundation/host-revenue-api:master-testnet | ||
container_name: host-revenue-api-zen | ||
restart: unless-stopped | ||
ports: | ||
- 11005:9880 | ||
volumes: | ||
- /home/debian/docker/host-revenue-api-zen:/data |
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,3 @@ | ||
#!/bin/bash -eu | ||
|
||
docker compose up --force-recreate --pull web-website web-assets web-crons web-renterd web-hostd web-walletd web-explorer web-explorer-testnet-zen |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash -eu | ||
|
||
nx run-many --target=build --projects=website,assets,crons,renterd,hostd,walletd --prod | ||
pm2 reload server/pm2.config.js |
This file was deleted.
Oops, something went wrong.