diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4e720dc --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e79ba97 --- /dev/null +++ b/docker-compose.yml @@ -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