chore: added docker compoe for docs

This commit is contained in:
Данил 2025-02-26 15:29:01 +03:00
parent 9724fac958
commit d8396d2331
2 changed files with 31 additions and 1 deletions

View file

@ -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
View file

@ -0,0 +1,9 @@
FROM node:20-alpine
WORKDIR /
COPY ./package*.json .
RUN npm install
CMD ["npm", "run", "build"]