-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 815 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (27 loc) · 815 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
services:
fancy-2fa:
build:
context: .
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
- NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY}
container_name: fancy-2fa
restart: unless-stopped
ports:
- "3000:3000"
environment:
- AUTH_SECRET_KEY=${AUTH_SECRET_KEY}
- API_AUTH_TOKEN=${API_AUTH_TOKEN}
- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL}
- NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY}
volumes:
- fancy-2fa-data:/app/data
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/api/totp?issuer=health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
fancy-2fa-data: