forked from featbit/featbit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
118 lines (110 loc) · 2.46 KB
/
docker-compose-dev.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
114
115
116
117
118
name: featbit-dev
version: "3"
services:
ui:
image: featbit/ui:dev
container_name: ui
build:
context: ./modules/front-end
dockerfile: ./Dockerfile
environment:
- API_URL=http://localhost:5000
- DEMO_URL=http://localhost:5173
- EVALUATION_URL= http://localhost:5100
depends_on:
- api-server
- demo-dino-game-vue
ports:
- "8081:80"
networks:
- featbit-network
api-server:
image: featbit/api:dev
container_name: api
build:
context: ./modules/back-end
dockerfile: ./deploy/Dockerfile
depends_on:
- mongodb
- redis
- da-server
ports:
- "5000:5000"
networks:
- featbit-network
evaluation-server:
image: featbit/evaluation-server:dev
container_name: evaluation-server
build:
context: ./modules/evaluation-server
dockerfile: ./deploy/Dockerfile
depends_on:
- mongodb
- redis
ports:
- "5100:5100"
networks:
- featbit-network
da-server:
image: featbit/data-analytics-server:dev
container_name: data-analytics-server
build:
context: ./modules/data-analytics
dockerfile: ./Dockerfile
depends_on:
- mongodb
- redis
ports:
- "8200:80"
networks:
- featbit-network
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
MONGO_URI: mongodb://admin:password@mongodb:27017
MONGO_INITDB_DATABASE: featbit
MONGO_HOST: mongodb
mongodb:
image: mongo:5.0.14
container_name: mongodb
restart: on-failure
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=password
- MONGO_INITDB_DATABASE=featbit
volumes:
- mongodb:/data/db
- ./infra/mongodb/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
networks:
- featbit-network
redis:
image: bitnami/redis:6.2.10
container_name: redis
restart: on-failure
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- featbit-network
ports:
- "6379:6379"
volumes:
- redis:/bitnami/redis/data
demo-dino-game-vue:
image: featbit/demo-dino-game-vue:latest
container_name: demo-dino-game-vue
networks:
- featbit-network
ports:
- "5173:80"
networks:
featbit-network:
name: featbit-network
driver: bridge
ipam:
config:
- subnet: 172.1.0.0/16
volumes:
mongodb:
redis: