-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 958 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (37 loc) · 958 Bytes
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
version: '3.8'
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
command: redis-server --appendonly yes
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
app:
build: .
ports:
- "3000:3000"
environment:
NODE_ENV: development
PORT: 3000
REDIS_URL: redis://redis:6379
SESSION_SECRET: ${SESSION_SECRET:-change-this-secret}
OAUTH_AUTHORIZATION_URL: ${OAUTH_AUTHORIZATION_URL}
OAUTH_TOKEN_URL: ${OAUTH_TOKEN_URL}
OAUTH_USERINFO_URL: ${OAUTH_USERINFO_URL}
OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
OAUTH_CLIENT_SECRET: ${OAUTH_CLIENT_SECRET}
OAUTH_REDIRECT_URI: ${OAUTH_REDIRECT_URI:-http://localhost:3000/callback}
depends_on:
redis:
condition: service_healthy
volumes:
- .:/app
- /app/node_modules
volumes:
redis_data: