62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
version: '3.6'
|
|
|
|
volumes:
|
|
kratos-sqlite:
|
|
|
|
services:
|
|
kratos-migrate:
|
|
image: oryd/kratos:v1.0.0
|
|
environment:
|
|
- DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true&mode=rwc
|
|
restart: on-failure
|
|
volumes:
|
|
- type: volume
|
|
source: kratos-sqlite
|
|
target: /var/lib/sqlite
|
|
read_only: false
|
|
- type: bind
|
|
source: ./config
|
|
target: /etc/config/kratos
|
|
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
|
|
kratos-selfservice-ui-node:
|
|
image: oryd/kratos-selfservice-ui-node:v1.0.0
|
|
ports:
|
|
- "4455:4455"
|
|
environment:
|
|
- PORT=4455
|
|
- SECURITY_MODE=
|
|
- KRATOS_PUBLIC_URL=http://kratos:4433/
|
|
- KRATOS_BROWSER_URL=http://127.0.0.1:4433/
|
|
restart: unless-stopped
|
|
webhook:
|
|
build:
|
|
context: ./webhook
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
kratos:
|
|
depends_on:
|
|
- kratos-migrate
|
|
image: oryd/kratos:v1.0.0
|
|
restart: unless-stopped
|
|
ports:
|
|
- '4433:4433' # public
|
|
- '4434:4434' # admin
|
|
environment:
|
|
- DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true
|
|
- LOG_LEVEL=trace
|
|
command: serve -c /etc/config/kratos/kratos.yml --dev --watch-courier
|
|
volumes:
|
|
- type: volume
|
|
source: kratos-sqlite
|
|
target: /var/lib/sqlite
|
|
read_only: false
|
|
- type: bind
|
|
source: ./config
|
|
target: /etc/config/kratos
|
|
mailslurper:
|
|
image: oryd/mailslurper:latest-smtps
|
|
restart: unless-stopped
|
|
ports:
|
|
- '4436:4436'
|
|
- '4437:4437'
|