-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.52 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
version: '3.8'
services:
# Main Frontend Application
app:
build: .
container_name: wohnpro-guide-app
# Runs the standard start script defined in package.json
command: npm start
ports:
- "3000:3000"
volumes:
# Mount current directory to /app for hot reloading in development
- .:/app
# Keep node_modules separate to avoid conflicts with host OS
- /app/node_modules
environment:
# Pass environment variables for API configuration
- API_KEY=${API_KEY}
- GCP_PROJECT=${GCP_PROJECT}
- GCP_LOCATION=${GCP_LOCATION}
# Nextcloud configuration for the Frontend (Direct client-side or server-proxied calls)
- NEXTCLOUD_URL=${NEXTCLOUD_URL}
- NEXTCLOUD_USER=${NEXTCLOUD_USER}
- NEXTCLOUD_PASSWORD=${NEXTCLOUD_PASSWORD}
- NEXTCLOUD_ROOT_FOLDER=${NEXTCLOUD_ROOT_FOLDER}
restart: unless-stopped
# Backend Middleware (For Nextcloud Webhooks)
# Only required if you are using the automatic file processing integration
middleware:
build: .
container_name: wohnpro-guide-middleware
# Run the backend server using ts-node
command: npx ts-node backend/server.ts
ports:
- "3001:3001"
volumes:
- .:/app
- /app/node_modules
environment:
- PORT=3001
- NEXTCLOUD_URL=${NEXTCLOUD_URL}
- NEXTCLOUD_USER=${NEXTCLOUD_USER}
- NEXTCLOUD_PASSWORD=${NEXTCLOUD_PASSWORD}
- NEXTCLOUD_ROOT_FOLDER=${NEXTCLOUD_ROOT_FOLDER}
- WEBHOOK_SECRET=${WEBHOOK_SECRET}
restart: unless-stopped