diff --git a/Jenkinsfile b/Jenkinsfile index 7255c14..e2956bc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,7 +38,7 @@ pipeline { steps { script { echo 'deploying docker image to EC2...' - def dockerComposeCmd = "docker-compose -f docker-compose.yaml up" + def dockerComposeCmd = "docker-compose -f docker-compose.yaml up --detach" sshagent(['ec2-server-key']) { sh "scp docker-compose.yaml ec2-user@35.180.251.121:/home/ec2-user" sh "ssh -o StrictHostKeyChecking=no ec2-user@35.180.251.121 ${dockerComposeCmd}" diff --git a/docker-compose.yaml b/docker-compose.yaml index cf61343..f4b8808 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,4 +9,4 @@ services: ports: - 5432:5432 environment: - - POSTGRES_PASSWORD:my-pwd + - POSTGRES_PASSWORD=my-pwd