38 lines
983 B
YAML
38 lines
983 B
YAML
version: '2.4'
|
|
services:
|
|
mysql:
|
|
image: mysql:8
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: hydra
|
|
MYSQL_DATABASE: hydra
|
|
MYSQL_USER: hydra
|
|
MYSQL_PASSWORD: hydra
|
|
volumes:
|
|
- mysql_data:/var/lib/mysql
|
|
hydra:
|
|
build:
|
|
context: ./misc/containers/hydra
|
|
environment:
|
|
DSN: mysql://hydra:hydra@tcp(mysql:3306)/hydra
|
|
URLS_LOGIN: http://localhost:3000/login
|
|
URLS_CONSENT: http://localhost:3000/consent
|
|
URLS_LOGOUT: http://localhost:3000/logout
|
|
SUPPORTED_SCOPES: email
|
|
SUPPORTED_CLAIMS: email,email_verified
|
|
SECRETS_SYSTEM: fAAya66yXNib52lbXpo16bxy1jD4NZrX
|
|
ports:
|
|
- 4444:4444
|
|
- 4445:4445
|
|
command: hydra serve all --dangerous-force-http
|
|
smtp:
|
|
image: bornholm/fake-smtp
|
|
ports:
|
|
- 3001:8080
|
|
- 2525:2525
|
|
environment:
|
|
- FAKESMTP_SMTP_DEBUG=false
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
volumes:
|
|
mysql_data: |