-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (42 loc) · 919 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
44
45
---
version: "3.6"
services:
train:
image: opennmt/opennmt:latest
volumes:
- ./data:/data
zmqrep:
image: opennmt/opennmt:latest
volumes:
- ./data:/data
command: th tools/translation_server.lua -config /data/zmqrep.yml
zmqreq:
env_file:
- ./zmqreq/.env
image: opennmt/zmqreq:latest
build:
context: ./zmqreq
dockerfile: Dockerfile
volumes:
- ./data:/data
- ./zmqreq:/usr/src/app
command: python api.py --port 8080 --host 0.0.0.0 --debug true
ports:
- 8080:8080
depends_on:
- zmqrep
frontend:
env_file:
- ./frontend/.env
image: opennmt/frontend:latest
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/home/node/frontend
working_dir: /home/node/frontend/app
command: yarn start
ports:
- 8081:8081
depends_on:
- zmqreq