Skip to content
Snippets Groups Projects
Commit d0225580 authored by s80984's avatar s80984
Browse files

Update build pipeline

parent 35d1fdd2
No related branches found
No related tags found
No related merge requests found
Pipeline #14144 failed
...@@ -43,7 +43,7 @@ job_build-image: ...@@ -43,7 +43,7 @@ job_build-image:
# - docker info # - docker info
# - docker-compose --version # - docker-compose --version
script: script:
- docker-compose -f docker-compose.yml up - docker-compose up -d
# - docker-compose up -d --build # - docker-compose up -d --build
# # - docker ps # # - docker ps
# # - docker network list # # - docker network list
......
version: '3'
services:
mongo:
container_name: mongo
image: mongo
ports:
- '27017:27017'
volumes:
- mongodb:/.local/db/data/db
app:
container_name: node-mongo-app
# image: ${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}
restart: always
build:
context: .
dockerfile: ./app/server/Dockerfile.test
ports:
- '80:3000'
links:
- mongo
environment:
- PORT=3000
- MONGODB_URL=mongodb://mongo:27017/todo-app
- JWT_SECRET=myjwtsecret
volumes:
mongodb:
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment