-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.test.yml
37 lines (37 loc) · 1.13 KB
/
docker-compose.test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '3'
services:
mongodb_test:
image: mongo
ports:
- '27018:27017'
volumes:
- mongodb_test_volume:/data/db
api_test:
container_name: trackmydeposits_api_test
build:
dockerfile: Dockerfile
context: ./server
volumes:
- ./server:/app
ports:
- '4001:${PORT}'
environment:
NODE_ENV: '${NODE_ENV}'
PORT: ${PORT}
MONGO_URI: '${MONGO_URI}'
API_VERSION: '${API_VERSION}'
JWT_SECRET: '${JWT_SECRET}'
JWT_EXPIRES_IN: '${JWT_EXPIRES_IN}'
LOG_OPERATIONAL_ERRORS: ${LOG_OPERATIONAL_ERRORS}
JWT_COOKIE_EXPIRES_IN: ${JWT_COOKIE_EXPIRES_IN}
TESTS_TARGET_HOST: '${TESTS_TARGET_HOST}'
EMAIL_FROM: '${EMAIL_FROM}'
EMAIL_USERNAME: '${EMAIL_USERNAME}'
EMAIL_PASSWORD: '${EMAIL_PASSWORD}'
EMAIL_HOST: '${EMAIL_HOST}'
EMAIL_PORT: ${EMAIL_PORT}
CLIENT_HOST: '${CLIENT_HOST}'
depends_on:
- mongodb_test
volumes:
mongodb_test_volume: