-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 1.41 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (40 loc) · 1.41 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
services:
iclib:
image: iclib:latest
container_name: iclib
restart: unless-stopped
ports:
- "80:80" # All traffic (frontend + API via nginx proxy)
environment:
# Authentication Settings
- JWT_SECRET=change-this-to-a-secure-random-string-in-production-minimum-32-characters
- CONFIG_ECO=false
- CONFIG_BASE_URL=http://localhost:80
# - CONFIG_SUBDIRECTORY_PATH=/
# Database Connection (External PostgreSQL)
# Update these to match your PostgreSQL server
- DB_HOST=localhost
- DB_PORT=5432
- DB_USER=iclib
- DB_PASSWORD=change-this-to-a-secure-db-password-minimum-6-characters
- DB_NAME=iclib
# Optional: API Keys for vendor integrations
# - DIGIKEY_CLIENT_ID=your_client_id
# - DIGIKEY_CLIENT_SECRET=your_client_secret
# - MOUSER_API_KEY=your_api_key
volumes:
- ./iclib/library:/app/library
# Optional: mount a directory containing your company logo for ECO PDFs
# - ./iclib/image:/app/image
iclib-db:
image: postgres:18
container_name: iclib-db
restart: unless-stopped
ports:
- "5432:5432"
environment:
- POSTGRES_USER=iclib
- POSTGRES_PASSWORD=change-this-to-a-secure-db-password-minimum-6-characters
- POSTGRES_DB=iclib
volumes:
- ./iclib/database:/var/lib/postgresql/18/docker