This commit is contained in:
2026-05-03 13:30:25 +05:00
parent 5aba7681ce
commit d182fa8a37
2 changed files with 43 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
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/hotel777.git .
# Копируем уже склонированный репозиторий с хоста
#COPY ./hotel777 /app
RUN npm i
EXPOSE 3000
CMD ["npm", "start"]

31
docker-compose.yml Normal file
View File

@@ -0,0 +1,31 @@
version: '3.8'
services:
hotell777:
build: .
image: kalugin66/hotell777
container_name: hotell777
# ports:
# - "3000:3000"
networks:
- applications
restart: always
volumes:
- /docker/hotell777/data:/app/data:rw
environment:
- TZ=Asia/Yekaterinburg
- HOTEL777KEY="secretkey"
- hotelName="Hotel 777"
- hotelAddress="Абхазтя золотой берег"
- hotelPhone="+79400000000"
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