-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 1.12 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
services:
photo-frame:
build: .
container_name: digital-photo-frame
ports:
- "${HOST_PORT:-3000}:${CONTAINER_PORT:-3000}"
environment:
- NODE_ENV=production
- PORT=${CONTAINER_PORT:-3000}
- SESSION_SECRET=${SESSION_SECRET:-your-secret-key-change-this}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin123}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- GOOGLE_REDIRECT_URI=${GOOGLE_REDIRECT_URI}
volumes:
# Persist uploaded photos
- photo-uploads:/app/uploads
# Persist access accounts data
- photo-data:/app/data
# Optional: Mount logs directory
- photo-logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').request({port:process.env.PORT||3000,path:'/api/health'}, (res) => process.exit(res.statusCode === 200 ? 0 : 1)).on('error', () => process.exit(1)).end()"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
photo-uploads:
driver: local
photo-data:
driver: local
photo-logs:
driver: local