tacticalrmm/docker/docker-compose.test.yml

42 lines
743 B
YAML
Raw Normal View History

2020-05-07 03:42:42 +00:00
# FOR TESTS
version: '3.7'
networks:
test:
2020-05-07 03:42:42 +00:00
services:
# Container that hosts Vue frontend
app-unit-test:
image: node:12
command: npm run test:unit
working_dir: /home/node
volumes:
- ../web:/home/node
networks:
- test
api-test:
build:
context: ..
dockerfile: ./docker/api-test/dockerfile
depends_on:
- db-test
- redis-test
networks:
- test
# Postgres Database for API service
db-test:
image: postgres:11.7
environment:
POSTGRES_DB: tacticalrmm-test
POSTGRES_USER: test
POSTGRES_PASSWORD: testpass
networks:
- test
# Redis Container for Celery tasks
redis-test:
image: redis
networks:
- test