-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
67 lines (66 loc) · 1.24 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
server:
build:
context: .
dockerfile: ./Dockerfile.server
env_file:
- .server.env
ports:
- 80:80
volumes:
- ./:/usr/src/server/
- /usr/src/server/node_modules
server_dev:
build:
context: .
dockerfile: ./Dockerfile.server
depends_on:
- mongo
ports:
- 3101:80
volumes:
- ./:/usr/src/server/
- /usr/src/server/node_modules
mongo:
image: mongo
volumes:
- "db-data:/data/db"
environment:
MONGO_INITDB_DATABASE: db
www:
build:
context: .
dockerfile: ./Dockerfile.www
command: npm run start:www
env_file:
- .www.env
ports:
- 80:80
volumes:
- ./:/usr/src/www/
- /usr/src/www/node_modules
- /usr/src/www/.next
www_dev:
build:
context: .
dockerfile: ./Dockerfile.www
depends_on:
- mongo
- mongoku
command: npm run start:www_dev
ports:
- 3100:3100
volumes:
- ./:/usr/src/www/
- /usr/src/www/node_modules
- /usr/src/www/.next
mongoku:
image: huggingface/mongoku
depends_on:
- mongo
ports:
- 3200:3100
environment:
MONGOKU_DEFAULT_HOST: mongo
volumes:
db-data: