-
Notifications
You must be signed in to change notification settings - Fork 24
/
docker-compose.yml
46 lines (42 loc) · 1.12 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
41
42
43
44
45
46
version: "3.9"
services:
# Backend AI
api:
container_name: api
build:
context: ./server
dockerfile: Dockerfile.dev
restart: always # "no", always, on-failure, unless-stopped
working_dir: /app
volumes:
- ./server:/app
- /app/node_modules
ports:
- "5000:5000"
environment:
MONGO_URI_DEV: mongodb://root:exapmle@mongo-db:27017/ta;lkhouse?authSource=admin
MONGO_URI: <PRODUCTION_MONGO_URI>
JWT_SECRET: secret
depends_on:
- mongo-db
# MongoDB database
mongo-db:
container_name: mongo-db
image: "mongo"
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: exapmle
ports:
- 27017:27017
# client
client:
container_name: client
build:
context: ./client
dockerfile: Dockerfile.dev
volumes:
- ./client:/app
- /app/node_modules
ports:
- "3000:3000"