hydra-passwordless/docker-compose.yml

34 lines
805 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
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: