-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yaml
68 lines (62 loc) · 1.51 KB
/
docker-compose.dev.yaml
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.9'
services:
db:
image: postgres:14
container_name: db
env_file:
- .docker.env
ports:
- 5432:5432
volumes:
- db_data:/var/lib/postgresql/data
restart: on-failure
kratos-migrate:
image: oryd/kratos:v0.11.0
container_name: kratos-migrate
environment:
- DSN=postgres://kratos:password@kratos-db:5432/kratos?sslmode=disable
volumes:
- ./kratos:/etc/config/kratos
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
kratos:
image: oryd/kratos:v0.11.0
container_name: kratos
depends_on:
- kratos-migrate
ports:
- 4433:4433
- 4434:4434
environment:
- DSN=postgres://kratos:password@kratos-db:5432/kratos?sslmode=disable
- LOG_LEVEL=trace
volumes:
- ./kratos:/etc/config/kratos
command: serve -c /etc/config/kratos/kratos.yml --dev --watch-courier
restart: on-failure
kratos-db:
image: postgres:14
container_name: kratos-db
environment:
- POSTGRES_USER=kratos
- POSTGRES_PASSWORD=password
- POSTGRES_DB=kratos
volumes:
- kratos_db_data:/var/lib/postgresql/data
restart: on-failure
s3:
image: quay.io/minio/minio
container_name: minio
command: server /data --console-address ":9090"
ports:
- 9000:9000
- 9090:9090
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=password
volumes:
- s3_data:/data
restart: on-failure
volumes:
db_data:
kratos_db_data:
s3_data: