-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
135 lines (124 loc) · 3.4 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
services:
mongo:
image: bitnami/mongodb:7.0.8
environment:
- MONGODB_REPLICA_SET_NAME=repl-set
volumes:
- mongoVolume:/bitnami/mongodb
ports:
- 27017:27017
healthcheck:
test:
test $$(mongosh --port 27017 --quiet --eval "try
{rs.initiate({_id:'repl-set',members:[{_id:0,host:\"mongo:27017\"}]})} catch(e) {rs.status().ok}") -eq 1
interval: 10s
start_period: 30s
minio:
image: bitnami/minio:2024.4.6
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
MINIO_BROWSER_REDIRECT_URL: http://localhost:8080/minio/ui/
MINIO_SERVER_URL: http://minio:9000
ports:
- 9000:9000
- 9001:9001
volumes:
- minioVolume:/bitnami/minio
clamd:
image: clamav/clamav:1.3
healthcheck:
test: ['CMD-SHELL', "echo 'PING' | nc -w 5 localhost 3310"]
interval: 30s
timeout: 10s
retries: 5
modelscan:
build:
context: ./lib/modelscan_api
dockerfile: ./Dockerfile.dev
volumes:
- ./lib/modelscan_api/bailo_modelscan_api:/app/bailo_modelscan_api
ports:
- 3311:3311
healthcheck:
test: ['CMD-SHELL', 'curl --fail http://localhost:3311/info || exit 1']
interval: 30s
timeout: 10s
retries: 5
mailcrab:
image: marlonb/mailcrab:v1.2.0
ports:
- 1080:1080
- 1025:1025
nginx:
image: nginxinc/nginx-unprivileged:1.25.4-alpine3.18
volumes:
- ./infrastructure/nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 8080:8080
depends_on:
- frontend
- backend
- registry
registry:
restart: always
image: registry:3.0.0-alpha.1
ports:
- 5000:5000
environment:
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/cert.pem
REGISTRY_HTTP_TLS_KEY: /certs/key.pem
REGISTRY_STORAGE_S3_ACCESSKEY: minioadmin
REGISTRY_STORAGE_S3_SECRETKEY: minioadmin
REGISTRY_AUTH: token
REGISTRY_AUTH_TOKEN_REALM: http://backend:3001/api/v1/registry_auth
REGISTRY_AUTH_TOKEN_SERVICE: RegistryAuth
REGISTRY_AUTH_TOKEN_ISSUER: RegistryIssuer
REGISTRY_AUTH_TOKEN_JWKS: /certs/jwks.json
REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: /certs/cert.pem
volumes:
- ./backend/config/registry.conf:/etc/docker/registry/config.yml
- ./backend/certs:/certs
frontend:
build:
context: ./frontend/
dockerfile: ./Dockerfile.dev
volumes:
- ./frontend:/app
depends_on:
- backend
ports:
- 3000:3000
backend:
build:
context: ./backend/
dockerfile: ./Dockerfile.dev
volumes:
- ./backend/src:/app/src
- ./backend/config:/app/config
- ./backend/certs:/certs
- ./backend/certs:/usr/local/share/ca-certificates
ports:
- 3001:3001
- 9229:9229
depends_on:
clamd:
condition: service_healthy
modelscan:
condition: service_healthy
minio:
condition: service_started
mongo:
condition: service_started
security_opt:
- seccomp:unconfined
- apparmor:unconfined
environment:
- NODE_CONFIG_ENV=docker_compose
webhook-tester:
image: tarampampam/webhook-tester
command: serve --port 8082 --create-session 00000000-0000-0000-0000-000000000000
ports: ['8082:8082/tcp'] # Open <http://127.0.0.1:8080/#/00000000-0000-0000-0000-000000000000>
volumes:
minioVolume:
mongoVolume: