diff --git a/.gitignore b/.gitignore index c93fb03..d70e4d1 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,5 @@ coverage *.tsbuildinfo -.env \ No newline at end of file +.env +.env.production \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 4e729a2..6538a1a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,20 +10,20 @@ pipeline { stage('Stop Existing Container') { steps { script { - sh 'docker-compose down || true' + sh 'docker compose down || true' } } } stage('Build and Deploy with Docker Compose') { steps { - sh 'docker-compose up --build -d' + sh 'docker compose up --build -d' } } } post { always { script { - sh 'docker-compose logs' + sh 'docker compose logs' } } } diff --git a/docker-compose.yml b/docker-compose.yml index 0e1292c..fee4784 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,6 +2,8 @@ version: '3.8' services: quizzfly-client: + image: quizzfly-client + container_name: quizzfly-client build: context: . dockerfile: Dockerfile