tacticalrmm/docker/docker-compose.test.yml

43 lines
732 B
YAML
Raw Normal View History

2020-06-23 04:41:45 +00:00
# FOR TESTS
version: "3.7"
2020-05-07 03:42:42 +00:00
2020-06-23 04:41:45 +00:00
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
2020-06-23 04:41:45 +00:00
networks:
- test
2020-06-23 04:41:45 +00:00
api-test:
build:
context: ..
dockerfile: ./docker/api-test/dockerfile
2020-06-23 04:41:45 +00:00
depends_on:
- db-test
- redis-test
2020-06-23 04:41:45 +00:00
networks:
- test
# Postgres Database for API service
db-test:
2020-06-23 04:41:45 +00:00
image: postgres:12
environment:
POSTGRES_DB: tacticalrmm-test
POSTGRES_USER: test
POSTGRES_PASSWORD: testpass
2020-06-23 04:41:45 +00:00
networks:
- test
# Redis Container for Celery tasks
redis-test:
image: redis
2020-06-23 04:41:45 +00:00
networks:
- test