hydra-passwordless/docker-compose.yml

34 lines
805 B
YAML
Raw Normal View History

2020-04-24 09:27:07 +02:00
version: '2.4'
services:
2020-05-20 11:13:14 +02:00
mysql:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: hydra
MYSQL_DATABASE: hydra
MYSQL_USER: hydra
MYSQL_PASSWORD: hydra
volumes:
- mysql_data:/var/lib/mysql
2020-04-24 09:27:07 +02:00
hydra:
2020-05-20 11:13:14 +02:00
build:
context: ./misc/containers/hydra
2020-04-24 09:27:07 +02:00
environment:
2020-05-20 11:13:14 +02:00
DSN: mysql://hydra:hydra@tcp(mysql:3306)/hydra
2020-04-24 09:27:07 +02:00
URLS_LOGIN: http://localhost:3000/login
URLS_CONSENT: http://localhost:3000/consent
ports:
- 4444:4444
- 4445:4445
2020-05-20 11:13:14 +02:00
command: hydra serve all --dangerous-force-http
2020-04-24 09:27:07 +02:00
smtp:
image: bornholm/fake-smtp
ports:
- 3001:8080
- 2525:2525
2020-05-20 11:13:14 +02:00
environment:
- FAKESMTP_SMTP_DEBUG=false
2020-04-24 09:27:07 +02:00
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
2020-05-20 11:13:14 +02:00
volumes:
mysql_data: