-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 920 Bytes
/
docker-compose.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
version: "3.8"
services:
server:
container_name: server
build:
context: ./server
target: development
volumes:
- ./server:/usr/src/app/server
ports:
- ${SERVER_PORT}:${SERVER_PORT}
command: npm run start:dev
depends_on:
- mongodb
server_test:
container_name: server_test
build:
context: ./server
target: test
volumes:
- ./server:/usr/src/app/server
- ./.git:/user/src/app/.git
depends_on:
- mongodb
tty: true
command: yarn test:e2e --watch --runInBand
mongodb:
image: mongo:latest
container_name: mongodb
hostname: mongodb
ports:
- "27017-27019:27017-27019"
environment:
MONGO_INITDB_DATABASE: oclize
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
volumes:
- mongodb_data_container:/data/db
volumes:
mongodb_data_container: