add deployment
This commit is contained in:
parent
de2e5364c2
commit
cb31e41c93
|
@ -0,0 +1,3 @@
|
||||||
|
.git
|
||||||
|
node_modules
|
||||||
|
public
|
|
@ -1,6 +1,6 @@
|
||||||
|
*.lock
|
||||||
|
.netlify
|
||||||
|
TODO
|
||||||
node_modules
|
node_modules
|
||||||
public
|
public
|
||||||
resources
|
resources
|
||||||
# Local Netlify folder
|
|
||||||
.netlify
|
|
||||||
TODO
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
FROM node:16-bullseye-slim
|
||||||
|
|
||||||
|
WORKDIR src
|
||||||
|
|
||||||
|
COPY . /src/
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
EXPOSE 1313
|
||||||
|
|
||||||
|
CMD ["npm", "run", "start"]
|
17
README.md
17
README.md
|
@ -2,4 +2,19 @@
|
||||||
|
|
||||||
> WIP: proof-of-concept for a new home site
|
> WIP: proof-of-concept for a new home site
|
||||||
|
|
||||||
`npm install & npm run start` (requires node 16.x, npm 8.x, see [`nvm`](https://github.com/nvm-sh/nvm)).
|
## Hacking
|
||||||
|
|
||||||
|
`npm install & npm run start`
|
||||||
|
|
||||||
|
Requires node 16.x, npm 8.x, see [`nvm`](https://github.com/nvm-sh/nvm)).
|
||||||
|
|
||||||
|
## Deploy
|
||||||
|
|
||||||
|
```
|
||||||
|
docker build -t thecoopcloud/beta.coopcloud.tech .
|
||||||
|
docker push thecoopcloud/beta.coopcloud.tech
|
||||||
|
docker context use mellor.coopcloud.tech
|
||||||
|
docker stack deploy -c compose.yml beta_coopcloud_tech
|
||||||
|
```
|
||||||
|
|
||||||
|
Manual for now.
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: "thecoopcloud/beta.coopcloud.tech:latest"
|
||||||
|
networks:
|
||||||
|
- proxy
|
||||||
|
deploy:
|
||||||
|
update_config:
|
||||||
|
failure_action: rollback
|
||||||
|
order: start-first
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.services.beta_coopcloud_tech.loadbalancer.server.port=1313"
|
||||||
|
- "traefik.http.routers.beta_coopcloud_tech.rule=Host(`beta.coopcloud.tech`)"
|
||||||
|
- "traefik.http.routers.beta_coopcloud_tech.entrypoints=web-secure"
|
||||||
|
- "traefik.http.routers.beta_coopcloud_tech.tls.certresolver=production"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
Reference in New Issue