docker-compose-test.yml
version: "3"
services:
test:
build: .
ports:
- "4000:4000"
container_name: document
environment:
NODE_ENV: test
PORT: 4000
NODE_PATH: app/src
MICROSERVICE_TOKEN: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Im1pY3Jvc2VydmljZSIsImNyZWF0ZWRBdCI6IjIwMTYtMDktMTQifQ.IRCIRm1nfIQTfda_Wb6Pg-341zhV8soAgzw7dd5HxxQ
STAMPERY_TOKEN:
S3_ACCESS_KEY_ID:
S3_SECRET_ACCESS_KEY:
HOST_IP: 127.0.0.1
GATEWAY_URL: http://mymachine:9000
RABBITMQ_URL: amqp://rabbitmq:5672
NODE_TLS_REJECT_UNAUTHORIZED: 0
ELASTIC_URL: https://opendistro:9200
ELASTIC_TEST_URL: opendistro:9200
ELASTIC_USER: admin
ELASTIC_PASSWORD: admin
FASTLY_ENABLED: "false"
AWS_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: "test"
AWS_SECRET_ACCESS_KEY: "test"
command: test
depends_on:
- rabbitmq
- opendistro
rabbitmq:
image: rabbitmq
ports:
- "5672"
opendistro:
container_name: opendistro
image: amazon/opendistro-for-elasticsearch:1.10.1
environment:
discovery.type: single-node
ports:
- "9200"
- "9600"