-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdc-mac.yml
executable file
·67 lines (62 loc) · 1.48 KB
/
dc-mac.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
version: '2.3'
services:
nlp:
build:
context: .
dockerfile: './Dockerfile-mac'
# args: # abandoning this for now, transfomers needs to be abel to mkdir /.cache
# - user_id=${USER_ID}
# - group_id=${GROUP_ID}
image: smtag
depends_on:
- tensorboard
- celery
- flower
volumes: &volumes
- .:/app
- ./data:/data
- ./lm_models:${LM_MODEL_PATH}
- ./tokcl_models:${TOKCL_MODEL_PATH}
- ./cache:${CACHE}
- ./runs:${RUNS_DIR}
env_file:
- ./.env
ports:
- 8888:8888 # this allows to run jupyter notebook --port=8888 --ip=0.0.0.0 --allow-root
working_dir: /app
command: ["jupyter", "notebook", "--port=8888", "--ip=0.0.0.0", "--allow-root"]
tensorboard:
image: smtag
ports:
- 6007:6007
volumes:
- ./runs:/runs
working_dir: /app
command: tensorboard --logdir /runs --port 6007 --bind_all
celery:
image: smtag
depends_on:
- rabbitmq
env_file:
- ./.env
volumes: *volumes
working_dir: /app
ports:
- 6899:6899
command: celery --app=smtag worker --loglevel=info
flower:
image: smtag
depends_on:
- celery
volumes: *volumes
working_dir: /app
ports:
- 5555:5555
command: flower --app=smtag --port=5555 --broker=rabbitmq
rabbitmq:
image: rabbitmq:3-management
ports:
# The standard AMQP protocol port
- 5672:5672
# HTTP management UI at http://localhost:15672/
- 15672:15672