This commit is contained in:
2026-05-05 13:56:53 +05:00
parent 39e5aa17a4
commit edf119dcab
2 changed files with 38 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:22-alpine
WORKDIR /app
# Устанавливаем git
RUN apk update --no-cache
RUN apk add --no-cache git
RUN git clone https://git.dadehard.ru/kalugin66/sts-avto.git .
COPY .env .
RUN npm i
EXPOSE 3000
CMD ["npm", "start"]

27
docker-compose.yml Normal file
View File

@@ -0,0 +1,27 @@
version: '3.8'
services:
sts-avto:
build: .
image: kalugin66/sts-avto
container_name: sts-avto
# ports:
# - "3000:3000"
networks:
- applications
restart: always
volumes:
- /docker/sts-avto/data:/app/data:rw
environment:
- TZ=Asia/Yekaterinburg
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 5s
retries: 3
networks:
applications:
external: true
# docker network create applications
# docker compose up -d
# docker compose up -d --build
# docker compose build --no-cache && docker compose up -d