-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 950 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 950 Bytes
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
version: '3.8'
services:
mongodb:
image: mongo:7
container_name: kartex-logs-mongodb
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
environment:
- MONGO_INITDB_DATABASE=kartex_logs
healthcheck:
test: [ "CMD", "mongosh", "--eval", "db.adminCommand('ping')" ]
interval: 10s
timeout: 5s
retries: 5
logging-server:
build: .
container_name: kartex-logging-server
ports:
- "8443:8443"
- "9514:9514/udp"
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
- "12201:12201/udp" # GELF UDP
- "514:514/udp" # Syslog UDP
- "1514:1514" # Syslog TCP
volumes:
- ./config.toml:/app/config.toml:ro
- ./certs:/app/certs:ro
depends_on:
mongodb:
condition: service_healthy
environment:
- RUST_LOG=info
- MONGODB_URI=mongodb://mongodb:27017
volumes:
mongodb_data: