forked from jsbroks/coco-annotator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (52 loc) · 1.29 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
version: '3'
volumes:
mongodb_data:
external: false
networks:
cocoannotator:
external: false
services:
frontend:
container_name: annotator_client
build:
context: .
dockerfile: ./docker/client/Dockerfile
ports:
- '8080:8080'
volumes:
- './client:/workspace/client'
networks:
- cocoannotator
depends_on:
- flask
flask:
container_name: annotator_flask
build:
context: .
dockerfile: ./docker/api/Dockerfile
ports:
- '5000:5000'
volumes:
- './datasets:/datasets'
- './app:/workspace/app'
- './.git:/workspace/.git'
environment:
- FLASK_APP=app
- FLASK_ENV=development
networks:
- cocoannotator
depends_on:
- database
database:
image: mongo:latest
container_name: annotator_mongodb
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- 'mongodb_data:/data/db'
ports:
- '27017:27017'
command: 'mongod --smallfiles --logpath=/dev/null'
networks:
- cocoannotator