bec/ci/docker-compose.yaml
Ivan Usov 80270f8196 ci: migrate docker to gitlab Dependency Proxy
Related to 1108662db13e8142b37cb3645ff7e9bc94d242b8

The docker-compose file/command might need further fixes, once the related end-2-end tests are activated.
2024-04-17 13:39:57 +02:00

33 lines
872 B
YAML

version: "3.7"
services:
mongodb-test:
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/mongo
ports:
- "27017:27017"
redis-test:
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/redis
network_mode: host
scibec-test-server:
image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/scibec
network_mode: host
depends_on:
- "mongodb-test"
volumes:
# mount the functionalAccounts.json file to the container
- ./functionalAccounts.json:/home/node/app/functionalAccounts.json
healthcheck:
test: curl --fail http://localhost:3030/sessions || exit 1,
interval: 60s
timeout: 5s
start_period: 20s
retries: 5
# redis-cli:
# image: redis:latest
# depends_on:
# - "redis-test"
# command: redis-cli monitor > /data/redis.log
# network_mode: host
# volumes:
# - /tmp:/data