-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
41 lines (38 loc) · 1.21 KB
/
docker-compose.prod.yml
File metadata and controls
41 lines (38 loc) · 1.21 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
version: '3.8'
# Production Docker Compose Configuration for osdg.in
# Usage: docker-compose -f docker-compose.prod.yml up -d
networks:
website_network:
ipam:
config:
- subnet: 172.21.1.0/24
services:
website:
build:
context: .
dockerfile: Dockerfile
networks:
website_network:
ipv4_address: 172.21.1.2
ports:
# Expose on port 8080 internally, Nginx will proxy to this
- "8080:80"
volumes:
# Mount the data directory for persistent project storage
- ./data:/app/data
environment:
- NODE_ENV=production
# Production CAS Server (login-test2 is whitelisted for osdg.in)
- CAS_BASE_URL=https://login-test2.iiit.ac.in/cas
# Optional: Explicit hostname for production
- HOSTNAME=osdg.in
restart: unless-stopped
container_name: osdg-web-prod
tty: true
# Health check for monitoring
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s