This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (73 loc) · 2.34 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
version: '3.8'
services:
redis:
image: redis:6.2-alpine
restart: always
command: redis-server --save 20 1 --loglevel warning --include /etc/redis/redis.conf
volumes:
- ./redis-init/redis.conf:/etc/redis/redis.conf
# - ./data/redis:/data
# - ./logs/redis:/var/log/redis
networks:
- app-network
db:
image: mongo:6.0.4
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: '${MONGO_ROOT_USER:-mongodb}'
MONGO_INITDB_ROOT_PASSWORD: '${MONGO_ROOT_PASSWORD:-mongodb}'
MONGO_INITDB_DATABASE: admin
MONGO_AIVERIFY_PASSWORD: '${DB_AIVERIFY_PASSWORD:-aiverify}'
user: '${CUR_UID}:${CUR_GID}'
volumes:
- ~/data/db:/data/db
- ~/logs/db:/var/log/mongodb
- ./mongo-init:/docker-entrypoint-initdb.d
networks:
- app-network
# backend - test-engine
test-engine:
image: aiverify:0.9
restart: always
depends_on:
- redis
working_dir: /app/aiverify/test-engine-app
command: python3 -m test_engine_app
volumes:
# voor eigen plugin
- ./plugins:/app/aiverify/ai-verify-portal/plugins
# voor eigen plugin + standaard
# - ./plugins/the-hacker-plugin:/app/aiverify/ai-verify-portal/plugins/the-hacker-plugin
# - plugins-volume:/app/aiverify/ai-verify-portal/plugins
- ~/logs/test-engine:/app/aiverify/test-engine-app/logs
- ~/uploads/data:/app/aiverify/uploads/data
- ~/uploads/model:/app/aiverify/uploads/model
networks:
- app-network
# frontend - portal & apigw
portal:
image: aiverify:0.9
ports:
- "3000:3000"
- "4000:4000"
depends_on:
- redis
- db
working_dir: /app/aiverify/ai-verify-portal
command: bash -c "cd ../ai-verify-apigw && node app.mjs & cd ../ai-verify-portal && npm run start"
volumes:
# voor eigen plugin
- ./plugins:/app/aiverify/ai-verify-portal/plugins
# voor eigen plugin + standaard
# - ./plugins/the-hacker-plugin:/app/aiverify/ai-verify-portal/plugins/the-hacker-plugin
# - plugins-volume:/app/aiverify/ai-verify-portal/plugins
- ~/logs/test-engine:/app/aiverify/test-engine-app/logs
- ~/uploads/data:/app/aiverify/uploads/data
- ~/uploads/model:/app/aiverify/uploads/model
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
plugins-volume: