-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (59 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
59 lines (59 loc) · 1.53 KB
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
version: '3'
services:
db:
image: postgres:latest
env_file: .env
volumes:
- pg_data:/var/lib/postgresql/data/
web:
image: hoyai/tf_edu_docker_skp:v1.2
env_file: .env
volumes:
- ./code:/home/dev/tensormsa
- ./code/static:/static
- ./hoya_src_root:/hoya_src_root
- ./hoya_str_root:/hoya_str_root
- ./hoya_model_root:/hoya_model_root
command: bash -c "(gunicorn tfrest.wsgi -b 0.0.0.0:8000 &)&&(flower -A hoyai &)&&(/run_vnc.sh &)&&/run_jupyter.sh;"
ports:
- "8888:8888"
- "8989:8989"
- "5555:5555"
- "5901:5901"
depends_on:
- db
nginx:
image: nginx:latest
ports:
- "8000:8000"
volumes:
- ./code:/home/dev/tensormsa
- ./config/nginx:/etc/nginx/conf.d
- ./code/static:/static
depends_on:
- web
env_file: .env
rabbit:
hostname: rabbit
image: rabbitmq:latest
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=mypass
depends_on:
- web
ports:
- "5672:5672" # we forward this port because it's useful for debugging
- "15672:15672" # here, we can access rabbitmq management plugin
celery:
image: hoyai/tf_edu_docker_skp:v1.2
volumes:
- ./code:/home/dev/tensormsa
- ./hoya_src_root:/hoya_src_root
- ./hoya_str_root:/hoya_str_root
- ./hoya_model_root:/hoya_model_root
#command: bash -c "(/home/dev/tensormsa/celery -A hoyai -l info &);"
depends_on:
- rabbit
volumes:
pg_data:
external: true