ю
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
27
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user