forked from CAMMA-public/indexity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (71 loc) · 1.42 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
version: '3'
services:
db:
image: postgres:11-alpine
environment:
- PGDATA
- POSTGRES_DB
- POSTGRES_PASSWORD
- POSTGRES_USER
ports:
- '5432:5432'
volumes:
- ${PWD}/storage/postgres:/var/lib/postgresql/data/pgdata
restart: on-failure:10
redis:
image: redis:5.0.3-alpine
ports:
- '6379:6379'
volumes:
- ${PWD}/storage/redis:/data
deploy:
restart_policy:
condition: on-failure
api:
build:
context: ./indexity-api
ports:
- '8082:8082'
depends_on:
- db
- tracker-api
environment:
- POSTGRES_HOST
- POSTGRES_PORT
- REDIS_HOST
- REDIS_PORT
- REDIS_ENABLED
- STRUCTURE_TRACKER_API_HOST
- STRUCTURE_TRACKER_API_PORT
- ENABLE_SWAGGER_UI
volumes:
- ${PWD}/storage:/indexity-api/storage:rw
restart: on-failure:10
ui:
build:
context: ./indexity-ui
depends_on:
- api
ports:
- '8083:80'
tracker-api:
build:
context: ./indexity-structure-tracker
ports:
- '8084:8084'
environment:
- INDEXITY_API_URL
- ANNOTATOR_EMAIL
- ANNOTATOR_PASSWORD
- VIDEOS_PATH
- SERVER_PORT
volumes:
- ${PWD}/storage/videos:/indexity-tracker/videos:ro
restart: on-failure:10
admin:
build:
context: ./indexity-admin-app
depends_on:
- api
ports:
- '8085:80'