mirror of
https://github.com/Redume/Kekkai.git
synced 2025-03-12 19:44:39 +03:00
chore: added docker compoe for docs
This commit is contained in:
parent
9724fac958
commit
d8396d2331
2 changed files with 31 additions and 1 deletions
|
@ -8,10 +8,18 @@ services:
|
|||
- ./nginx/:/etc/nginx/
|
||||
- ./CertSSL:/etc/nginx/ssl
|
||||
- ./assets/logo.png:/etc/nginx/assets/logo.png
|
||||
- ./docs/dist:/usr/share/
|
||||
depends_on:
|
||||
- server
|
||||
- chart
|
||||
- web
|
||||
- docs
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost"]
|
||||
interval: 10s
|
||||
retries: 5
|
||||
start_period: 30s
|
||||
timeout: 10s
|
||||
|
||||
server:
|
||||
build:
|
||||
|
@ -50,6 +58,19 @@ services:
|
|||
- './CertSSL:/CertSSL'
|
||||
- './config.yaml:/config.yaml'
|
||||
|
||||
docs:
|
||||
build:
|
||||
context: ./docs
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./docs/dist:/docs/dist # Bind mount for the dist folder
|
||||
healthcheck:
|
||||
test: ["CMD", "test", "-f", "/docs/dist/.built"] # Check if the build is complete
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
|
||||
collect-currency:
|
||||
build:
|
||||
context: ./
|
||||
|
|
9
docs/Dockerfile
Normal file
9
docs/Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /
|
||||
|
||||
COPY ./package*.json .
|
||||
|
||||
RUN npm install
|
||||
|
||||
CMD ["npm", "run", "build"]
|
Loading…
Add table
Add a link
Reference in a new issue