-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
68 lines (63 loc) · 1.71 KB
/
docker-compose.dev.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
56
57
58
59
60
61
62
63
64
65
66
67
68
version: "3.7"
services:
postgresd:
container_name: "refractor_postgres"
image: postgres:9.6
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=kratos
volumes:
- ./dev/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
- intranet
kratos-migrate:
container_name: "refractor_kratos_migrate"
depends_on:
- postgresd
image: oryd/kratos:v0.6.3-alpha.1
environment:
- DSN=postgres://postgres:password@postgresd:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4
volumes:
- type: bind
source: ./dev/kratos
target: /etc/config/kratos
command: -c /etc/config/kratos/kratos.dev.yml migrate sql -e --yes
restart: on-failure
networks:
- intranet
kratos:
container_name: "refractor_kratos"
depends_on:
- postgresd
- kratos-migrate
image: oryd/kratos:v0.6.3-alpha.1
ports:
- "4433:4433" # auth
- "4434:4434" # admin
restart: unless-stopped
environment:
- DSN=postgres://postgres:password@postgresd:5432/kratos?sslmode=disable&max_conns=20&max_idle_conns=4
- LOG_LEVEL=trace
- COURIER_SMTP_CONNECTION_URI=smtp://@mailhog:1025/
- COURIER_SMTP_FROM_ADDRESS=noreply@refractor
command: serve -c /etc/config/kratos/kratos.dev.yml --dev --watch-courier
volumes:
- type: bind
source: ./dev/kratos
target: /etc/config/kratos
networks:
- intranet
mailhog:
hostname: "mailhog"
container_name: "refractor_mailhog"
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
networks:
- intranet
networks:
intranet: