-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (48 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
50 lines (48 loc) · 1.09 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
version: '3.8'
services:
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
no_cache: true
args:
CACHE_BUST: ${CACHE_BUST:-$(date +%s)}
VITE_BACKEND_URL: ${VITE_BACKEND_URL}
ports:
- "80:80"
restart: unless-stopped
depends_on:
- backend
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
backend:
build:
context: .
dockerfile: Dockerfile.backend
no_cache: true
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- GITHUB_CLIENT_ID=${GITHUB_CLIENT_ID}
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
- SESSION_SECRET=${SESSION_SECRET}
- FRONTEND_URL=${FRONTEND_URL}
- PORT=3001
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
- ./data:/app/data
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"