-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
63 lines (56 loc) · 1.42 KB
/
docker-compose.prod.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
version: "3.2"
services:
jupyterhub:
image: newsgac/jupyterhub
volumes:
- ${JUPYTER_NOTEBOOK_DIRECTORY}:/notebooks
depends_on:
- redis
- database
- worker
- frog
environment:
- JUPYTER_NOTEBOOK_DIRECTORY
- FLASK_SECRET_KEY
- REDIS_HOST
- REDIS_PORT
- CELERY_EAGER
- JUPYTER_USER
- JUPYTER_PASSWORD
deploy:
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
replicas: 1
worker:
command: "celery -A newsgac.tasks.celery_app worker -l warning --concurrency 10 -n worker@%h"
nginx:
build:
context: nginx
dockerfile: Dockerfile
image: newsgac/nginx
depends_on:
- web
- jupyterhub
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 10s
max_attempts: 3
ports:
- target: 80
published: 5055
protocol: tcp
mode: host
ngrok:
depends_on:
- nginx
image: wernight/ngrok
deploy:
replicas: 1
restart_policy:
condition: any
delay: 10s
max_attempts: 3