add ci extra

This commit is contained in:
Иван 2025-11-18 20:00:29 +03:00
parent 9b4e8440dc
commit b74d1f7fbe
2 changed files with 20 additions and 2 deletions

18
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,18 @@
stages:
- deploy
variables:
COMPOSE_PROJECT_NAME: travelmarine-backend
DOCKER_HOST: unix:///var/run/docker.sock
deploy:
stage: deploy
only:
- main
tags:
- shell
script:
- docker compose -p "$COMPOSE_PROJECT_NAME" up -d --build
environment:
name: production
url: http://89.169.188.2

View File

@ -3,7 +3,7 @@ services:
image: postgres:16-alpine
restart: always
environment:
POSTGRES_DB: yachtbooking
POSTGRES_DB: travelmarinedb
POSTGRES_USER: yacht
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-change_me}
volumes:
@ -16,7 +16,7 @@ services:
environment:
NODE_ENV: production
PORT: 4000
DATABASE_URL: postgresql://yacht:${POSTGRES_PASSWORD:-change_me}@postgres:5432/yachtbooking
DATABASE_URL: postgresql://yacht:${POSTGRES_PASSWORD:-change_me}@postgres:5432/travelmarinedb
depends_on:
- postgres
ports: