-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (53 loc) · 1.76 KB
/
docker-compose.yaml
File metadata and controls
57 lines (53 loc) · 1.76 KB
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
# postgresql database for local development
services:
postgresql:
image: ghcr.io/l3montree-dev/devguard/postgresql:v1.0.0-rc.5
# If you want to build the image locally, uncomment the following lines
# build:
# context: .
# dockerfile: Dockerfile.postgres
env_file: .env
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
- ./initdb.sql:/docker-entrypoint-initdb.d/init.sql
# command: ["postgres", "-c", "log_statement=all"] # enable to log all queries into the log
kratos-migrate:
image: oryd/kratos:v25.4.0-distroless@sha256:368667ee3713797f86ddec669c36751f6484c7d675c78fd27c795b2e79271c31
depends_on:
- postgresql
environment:
- DSN=postgres://kratos:change-me-definitely-when-not-testing@postgresql:5432/kratos?sslmode=disable
volumes:
- type: bind
source: ./.kratos
target: /etc/config/kratos
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
kratos:
# build:
# context: ../kratos
# dockerfile: ../kratos/.docker/Dockerfile-build
image: oryd/kratos:v25.4.0-distroless@sha256:368667ee3713797f86ddec669c36751f6484c7d675c78fd27c795b2e79271c31
depends_on:
- kratos-migrate
- postgresql
ports:
- '4433:4433' # public
- '4434:4434' # admin
command: serve -c /etc/config/kratos/kratos.yml --dev --watch-courier
environment:
- DSN=postgres://kratos:change-me-definitely-when-not-testing@postgresql:5432/kratos?sslmode=disable
- LOG_LEVEL=trace
volumes:
- type: bind
source: ./.kratos
target: /etc/config/kratos
jaeger:
image: jaegertracing/jaeger:2.16.0
ports:
- "4317:4317" # OTLP gRPC
- "4318:4318" # OTLP HTTP
- "16686:16686" # Jaeger UI
volumes:
postgres: