Compare commits

...

2 commits

Author SHA1 Message Date
d8396d2331 chore: added docker compoe for docs 2025-02-26 15:29:01 +03:00
9724fac958 chore: docs add to nginx 2025-02-26 15:28:46 +03:00
4 changed files with 35 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:
@ -38,7 +46,7 @@ services:
depends_on:
postgres:
condition: service_healthy
web:
build:
context: ./
@ -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"]

3
nginx/docs/nginx.conf Normal file
View file

@ -0,0 +1,3 @@
root dist;
try_files $uri $uri/ /index.html;

View file

@ -25,5 +25,6 @@ http {
include chart/nginx.conf;
include server/nginx.conf;
include web/nginx.conf;
include docs/nginx.conf;
}
}