You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
956 B
YAML
36 lines
956 B
YAML
version: '3.7'
|
|
|
|
services:
|
|
hydra-migrate:
|
|
image: local/hydra:latest
|
|
build:
|
|
context: .
|
|
dockerfile: hydra.Dockerfile
|
|
command: migrate -c /etc/config/hydra/hydra.yml sql -e --yes
|
|
environment:
|
|
- DSN=postgres://hydra:secret@postgres-hydra:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
|
|
restart: on-failure
|
|
depends_on:
|
|
- postgres-hydra
|
|
networks:
|
|
- intranet
|
|
|
|
hydra:
|
|
image: local/hydra:latest
|
|
build:
|
|
context: .
|
|
dockerfile: hydra.Dockerfile
|
|
ports:
|
|
- "4444:4444" # Public port
|
|
- "4445:4445" # Admin port
|
|
- "5555:5555" # Port for hydra token user
|
|
command: serve -c /etc/config/hydra/hydra.yml all --dev
|
|
environment:
|
|
- DSN=postgres://hydra:secret@postgres-hydra:5432/hydra?sslmode=disable&max_conns=20&max_idle_conns=4
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- postgres-hydra
|
|
- hydra-migrate
|
|
networks:
|
|
- intranet
|