-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
50 lines (45 loc) · 1.08 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
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '3.5'
services:
###
# api
###
api_test:
build:
context: .
dockerfile: ./images/api/Dockerfile.development
container_name: plutus_api_test
command: >
sh -c "yarn nest:start"
depends_on:
- database_test
env_file:
- ./.env.test
healthcheck:
interval: 5s
retries: 3
start_period: 5s
test: ["CMD", "curl", "-f", "http://127.0.0.1:${APP_PORT:-3000}/api/v1/versions"]
image: plutus/api_test
networks:
- plutus_network_test
ports:
- "${APP_PORT:-3000}:${APP_PORT:-3000}"
###
# database
###
database_test:
build:
context: .
dockerfile: ./images/database/Dockerfile.development
container_name: plutus_database_test
environment:
MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD:-password}
MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USERNAME:-admin}
image: plutus/database_test
networks:
- plutus_network_test
ports:
- "${MONGODB_PORT:-27017}:${MONGODB_PORT:-27017}"
networks:
plutus_network_test:
name: plutus_network_test