-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 995 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 995 Bytes
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.9'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: plex-backend
environment:
- NODE_ENV=production
- PORT=3001
- HOST=0.0.0.0
# Set to your site origin for CORS (adjust in prod)
- FRONTEND_URL=http://localhost:8080
# Provide a secure secret in real deployments
- SESSION_SECRET=change-me-in-prod
# Optionally override DB/config/cache locations
# - CONFIG_DIRECTORY=/app/config
# - DATABASE_PATH=/app/config/db/app.sqlite
# - IMAGE_CACHE_DIR=/app/cache/images
ports:
- "3001:3001"
volumes:
- backend-config:/app/config
- backend-cache:/app/cache
restart: unless-stopped
frontend:
build:
context: .
dockerfile: docker/frontend.Dockerfile
container_name: plex-frontend
depends_on:
- backend
ports:
- "8080:80"
restart: unless-stopped
volumes:
backend-config:
backend-cache: