-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.32 KB
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
version: '3.8'
services:
etc-collector:
build: .
image: etc-collector:2.0.0
container_name: etc-collector
restart: unless-stopped
ports:
- "8443:8443"
volumes:
- ./data:/app/data
- ./keys:/app/keys
- ./config.yaml:/app/config.yaml:ro
environment:
- NODE_ENV=production
- LOG_LEVEL=info
- LOG_FORMAT=json
# LDAP Configuration (override via env or config file)
- LDAP_URL=${LDAP_URL:-}
- LDAP_BIND_DN=${LDAP_BIND_DN:-}
- LDAP_BIND_PASSWORD=${LDAP_BIND_PASSWORD:-}
- LDAP_BASE_DN=${LDAP_BASE_DN:-}
- LDAP_TLS_VERIFY=${LDAP_TLS_VERIFY:-true}
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8443/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Development services (optional)
# openldap:
# image: osixia/openldap:1.5.0
# container_name: openldap
# ports:
# - "389:389"
# - "636:636"
# environment:
# LDAP_ORGANISATION: "Example Inc"
# LDAP_DOMAIN: "example.com"
# LDAP_ADMIN_PASSWORD: "admin"
# volumes:
# - ldap_data:/var/lib/ldap
# - ldap_config:/etc/ldap/slapd.d
volumes:
data:
keys:
# ldap_data:
# ldap_config:
networks:
default:
name: etc-collector-network