-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (67 loc) · 1.94 KB
/
docker-compose.yml
File metadata and controls
69 lines (67 loc) · 1.94 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
services:
nginx:
image: nginx:alpine
ports:
- "443:443"
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- nginx_certs:/etc/nginx/certs
- ./webapp:/app/webapp:ro
- "${DATA_DIR}:/data:ro"
depends_on:
- autoframe
restart: unless-stopped
entrypoint:
- /bin/sh
- -c
- |
mkdir -p /etc/nginx/certs
if [ ! -f /etc/nginx/certs/cert.pem ]; then
apk add --no-cache openssl 2>/dev/null || true
openssl req -x509 -newkey rsa:4096 \
-keyout /etc/nginx/certs/key.pem \
-out /etc/nginx/certs/cert.pem \
-days 3650 -nodes -subj '/CN=autoframe'
fi
exec nginx -g 'daemon off;'
autoframe:
build: .
image: autoframe:latest
user: "${UID}:${GID}"
shm_size: '2gb'
security_opt:
- apparmor:unconfined
volumes:
- "${DATA_DIR}:/data"
- ./webapp:/app/webapp
- ./src:/app/src
- ./config.ini:/app/config.ini:ro
- /proc/meminfo:/proc/meminfo:ro
environment:
BROWSE_ROOT: /data
ENABLE_AUTH: ${ENABLE_AUTH:-false}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
ACRCLOUD_HOST: ${ACRCLOUD_HOST}
ACRCLOUD_ACCESS_KEY: ${ACRCLOUD_ACCESS_KEY}
ACRCLOUD_ACCESS_SECRET: ${ACRCLOUD_ACCESS_SECRET}
LAST_FM_API_KEY: ${LAST_FM_API_KEY:-}
S3_BUCKET: ${S3_BUCKET:-}
S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:-}
S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:-}
S3_REGION: ${S3_REGION:-us-east-1}
S3_ENDPOINT_URL: ${S3_ENDPOINT_URL:-}
IG_ACCESS_TOKEN: ${IG_ACCESS_TOKEN:-}
IG_USER_ID: ${IG_USER_ID:-}
IG_APP_ID: ${IG_APP_ID:-}
IG_APP_SECRET: ${IG_APP_SECRET:-}
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu, video, compute, utility]
restart: unless-stopped
volumes:
nginx_certs: