-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
63 lines (60 loc) · 1.74 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
63 lines (60 loc) · 1.74 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
version: '3.8'
services:
linkmeet-backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: linkmeet-backend
hostname: linkmeet-backend # Explicit hostname
ports:
- "5001:5000"
- "5002:5555"
environment:
- NODE_ENV=production
- LOGS_DIR=/app/logs
env_file:
- ./backend/.env.production
restart: unless-stopped
networks:
linkmeet-network:
aliases:
- linkmeet-backend
volumes:
# Mount logs directory with proper permissions
- ./backend/logs:/app/logs:rw
# Temporarily disable healthcheck for debugging
# healthcheck:
# test: ["CMD", "node", "-e", "require('http').get('http://localhost:5000/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })"]
# interval: 30s
# timeout: 10s
# retries: 3
# start_period: 40s
linkmeet-frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: linkmeet-frontend
hostname: linkmeet-frontend # Explicit hostname
environment:
- NEXT_PUBLIC_API_BASE_URL=http://localhost:5001
- SERVER_SIDE_API_BASE_URL=http://linkmeet-backend:5000
ports:
- "5003:3000"
env_file:
- ./frontend/.env.production
restart: unless-stopped
networks:
- linkmeet-network
depends_on:
- linkmeet-backend # Remove health condition temporarily
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/api/health', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
linkmeet-network:
name: linkmeet-network
driver: bridge
attachable: true