-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 1.06 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
version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: aurinko-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
auth-server:
build: .
container_name: aurinko-auth-server
ports:
- "8000:8000"
environment:
- REDIS_URL=redis://redis:6379/0
- PORT=8000
- HOST=0.0.0.0
# Add your Aurinko credentials here or use .env file
- AURINKO_CLIENT_ID=${AURINKO_CLIENT_ID}
- AURINKO_CLIENT_SECRET=${AURINKO_CLIENT_SECRET}
- OAUTH_SUCCESS_URL=${OAUTH_SUCCESS_URL:-http://localhost:8000/email/connected}
- BASE_URL=${BASE_URL:-http://localhost:8000} # Optional base URL, though we're able to infer it directly
- WEBHOOK_URL=${WEBHOOK_URL} # Incase you want to be notified when the OAuth flow is complete, not needed
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
volumes:
redis_data: