forked from reactioncommerce/reaction-hydra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (49 loc) · 973 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '3.4'
networks:
reaction:
external:
name: reaction.localhost
services:
hydra-migrate:
image: oryd/hydra:v1.0.8
command: migrate sql -e -y
depends_on:
- postgres
networks:
default:
reaction:
env_file: ".env"
restart: on-failure
hydra:
image: oryd/hydra:v1.0.8
command: serve all --dangerous-force-http
depends_on:
- hydra-migrate
- postgres
networks:
default:
reaction:
ports:
# Public port
- "4444:4444"
# Admin port
- "4445:4445"
# Port for hydra token user
- "5555:5555"
env_file: ".env"
restart: unless-stopped
postgres:
image: postgres:10.3
environment:
- POSTGRES_USER=hydra
- POSTGRES_PASSWORD=changeme
- POSTGRES_DB=hydra
networks:
default:
reaction:
ports:
- 5432
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data: