-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 851 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 851 Bytes
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
version: '3'
services:
mongo:
container_name: pattern-mongo
image: mongo
command: mongod --dbpath /data/db --port 27017 --bind_ip 0.0.0.0
restart: unless-stopped
expose:
- "27017"
ports:
- "27017:27017"
environment:
TERM: xterm
volumes:
- pattern-mongodb-data:/data/db
pattern-extractor-py:
container_name: pattern-extractor-py
build:
context: python
dockerfile: Dockerfile
restart: unless-stopped
expose:
- "4242"
ports:
- "4242:4242"
pattern-extractor:
container_name: pattern-extractor
build:
context: .
dockerfile: pattern.Dockerfile
depends_on:
- mongo
- pattern-extractor-py
restart: unless-stopped
env_file:
- pattern.env
ports:
- "8087:8080"
volumes:
pattern-mongodb-data: