-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
40 lines (38 loc) · 1.06 KB
/
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
version: '3'
services:
api-service:
image: node:14
container_name: auth_api
volumes:
- ./node_modules:/node_modules
- ./api:/api
- ./shared:/shared
- ./tsconfig.json:/tsconfig.json
- ./package.json:/package.json
ports:
- '3001:3000'
working_dir: /
command: yarn run ts-node-dev --project api/tsconfig.json -r tsconfig-paths/register api/index.ts
env_file: .env.development
realtime-service:
image: node:14
container_name: auth_realtime
volumes:
- ./node_modules:/node_modules
- ./realtime:/realtime
- ./shared:/shared
- ./tsconfig.json:/tsconfig.json
- ./package.json:/package.json
ports:
- '3002:3000'
working_dir: /
command: yarn run ts-node-dev --project realtime/tsconfig.json -r tsconfig-paths/register realtime/index.ts
env_file: .env.development
mongodb:
image: mongo:5
container_name: auth_mongodb
ports:
- '27017:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: change_me