-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.01 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
version: '3.8'
services:
icon_library:
image: icon_library:0.1.10
build:
context: .
# Build optimization
cache_from:
- icon_library:latest
container_name: icon_library
restart: always
ports:
- "5000:5000"
volumes:
- ./data:/app/data # data directory will automatically contain static/icons, data and logs subdirectories
environment:
- SECRET_KEY=icon_manager_secret_key_change_this_in_production
- ICON_STORAGE_PATH=/app/data/static/icons
- DATABASE_URL=sqlite:////app/data/icons.db
- FLASK_ENV=production
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=password123
- LOG_PATH=/app/data/logs
- SAVE_LOGS=true
user: "1000:1000"
# Resource limits
deploy:
resources:
limits:
cpus: '1'
memory: 512M
reservations:
cpus: '0.5'
memory: 256M
# Log optimization
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"