-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (50 loc) · 1.24 KB
/
docker-compose.yml
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
name: stupidwebauthnexample
services:
mail:
image: axllent/mailpit
ports:
- 127.0.0.1:8025:8025
# - 127.0.0.1:8125:1025
environment:
- "MP_SMTP_AUTH_ACCEPT_ANY=true"
- "MP_SMTP_AUTH_ALLOW_INSECURE=true"
auth:
image: ghcr.io/stupidwebauthn/server:v1.8.8
restart: unless-stopped
depends_on:
- mail
environment:
- SMTP_HOST=mail
- SMTP_PORT=1025
- SMTP_SECURE=false
- SMTP_USERNAME=user@example.com
- SMTP_PASSWORD=password
- SMTP_FROM=user@example.com
- EMAIL_VALIDATION_URL=http://localhost:5178/register
- WEBAUTHN_ORIGIN=http://localhost:5178
- COOKIE_DOMAIN=localhost
- COOKIE_SECURE=false
- COOKIE_SECRET=zH4NRP1HMALxxCFnRZABFA7GOJtzU_gIj02alfL1lvI
- COOKIE_PREFIX=swa_
- DATABASE_PATH=./data/db.sqlite
- EMAIL_TEMPLATE_PATH=data/email.html
- PORT=80
volumes:
- ./data:/app/data
example_backend:
build:
context: backend
# ports:
# - 127.0.0.1:5179:5179
depends_on:
- auth
environment:
- SWA_BASE=http://auth:80
- PORT=80
example_frontend:
build:
context: frontend
depends_on:
- example_backend
ports:
- 127.0.0.1:5178:80