add ci extra
This commit is contained in:
parent
9b4e8440dc
commit
b74d1f7fbe
|
|
@ -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
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue