Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (73 loc) · 1.96 KB
/
Copy pathdocker-compose.yml
File metadata and controls
76 lines (73 loc) · 1.96 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
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3'
services:
app:
build: .
ports:
- "3000:3000"
environment:
- LINEAR_CLIENT_ID=${LINEAR_CLIENT_ID}
- LINEAR_CLIENT_SECRET=${LINEAR_CLIENT_SECRET}
- LINEAR_REDIRECT_URI=${LINEAR_REDIRECT_URI}
- CONFLUENCE_CLIENT_ID=${CONFLUENCE_CLIENT_ID}
- CONFLUENCE_CLIENT_SECRET=${CONFLUENCE_CLIENT_SECRET}
- APP_URL=${APP_URL}
- SESSION_SECRET=${SESSION_SECRET}
- WEBHOOK_SECRET=${WEBHOOK_SECRET}
- DATABASE_URL=postgresql://postgres:postgres@db:5432/linear_agent
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- PORT=3000
- CONFLUENCE_CLIENT_ID=${CONFLUENCE_CLIENT_ID}
- CONFLUENCE_CLIENT_SECRET=${CONFLUENCE_CLIENT_SECRET}
- APP_URL=${APP_URL}
- SESSION_SECRET=${SESSION_SECRET}
- CONFLUENCE_USERNAME=${CONFLUENCE_USERNAME}
- CONFLUENCE_API_TOKEN=${CONFLUENCE_API_TOKEN}
- CONFLUENCE_BASE_URL=${CONFLUENCE_BASE_URL}
- SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL}
- SQLITE_DB_PATH=/app/data/sync.db
- NODE_ENV=production
volumes:
- sqlite_data:/app/data
depends_on:
- db
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '1'
memory: 1G
db:
image: postgres:14
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=linear_agent
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
deploy:
resources:
limits:
cpus: '1'
memory: 1G
reservations:
cpus: '0.5'
memory: 512M
volumes:
postgres_data:
sqlite_data: