-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
113 lines (103 loc) · 2.47 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
services:
notebookviewer:
container_name: meditor_notebookviewer
build: packages/notebook-viewer
environment:
- FLASK_ENV=development
env_file:
- .env
volumes:
- ./packages/notebook-viewer:/usr/src/app
proxy:
container_name: meditor_proxy
image: caddy:2.7-alpine
restart: on-failure
ports:
- "127.0.0.1:80:8080"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
environment:
- APP_HOST=${APP_HOST:-meditor_app}
- DOCS_HOST=${DOCS_HOST:-meditor_docs}
- MONITOR_HOST=${MONITOR_HOST:-meditor_monitor}
- NOTEBOOKVIEWER_HOST=${NOTEBOOKVIEWER_HOST:-meditor_notebookviewer}
depends_on:
- nats
- app
- database
- notebookviewer
notifier:
depends_on:
- nats
container_name: meditor_notifier
build: packages/notifier
restart: on-failure
env_file:
- .env
volumes:
- ./packages/notifier:/usr/src/app
- /usr/src/app/node_modules
app:
container_name: meditor_app
build: packages/app
restart: on-failure
env_file:
- .env
ports:
- "127.0.0.1:3000:3000"
develop:
watch:
- action: sync
path: ./packages/app
target: /usr/src/app
ignore:
- node_modules/
- .next/
- action: rebuild
path: ./packages/app/package.json
docs:
container_name: meditor_docs
build: packages/docs
env_file:
- .env
ports:
- "127.0.0.1:3030:3030"
depends_on:
- app
database:
image: ${REGISTRY}mongo:4.1.4
container_name: meditor_database
volumes:
- ./mongo-data:/data/db
ports:
- "127.0.0.1:27018:27017"
nats:
image: ${REGISTRY}nats-streaming:0.15.1
container_name: meditor_nats
volumes:
- ./nats-data:/nats/data
ports:
- "127.0.0.1:4222:4222"
- "127.0.0.1:8222:8222"
monitor:
image: ${REGISTRY}portainer/portainer:1.20.0
container_name: meditor_monitor
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- monitor-data:/data
agent:
image: ${REGISTRY}portainer/agent:1.1.2
container_name: meditor_agent
environment:
AGENT_CLUSTER_ADDR: tasks.agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
ports:
- "127.0.0.1:9001:9001"
volumes:
monitor-data:
networks:
default:
driver: bridge