Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
71 lines (68 loc) · 2.14 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
71 lines (68 loc) · 2.14 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# postgresql database for local development
services:
riverui:
image: ghcr.io/riverqueue/riverui:latest@sha256:3f59206a0f152ae50a45bb49e3646de2126c878f9daa4781f42ba311f141599d
ports:
- "4040:8080"
environment:
- DATABASE_URL=postgres://devguard:devguard@postgresql:5432/devguard?sslmode=disable
depends_on:
- postgresql
postgresql:
image: ghcr.io/l3montree-dev/devguard/postgresql:16.15
shm_size: 1g
# If you want to build the image locally, uncomment the following lines
# build:
# context: .
# dockerfile: Dockerfile.postgres
env_file: .env
ports:
- "5432:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres:/var/lib/postgresql/data
- ./initdb.sql:/docker-entrypoint-initdb.d/init.sql
tmpfs: /run/postgresql:rw,uid=999,gid=999
# command: ["postgres", "-c", "log_statement=all"] # enable to log all queries into the log
kratos-migrate:
image: ghcr.io/l3montree-dev/devguard/kratos:v26.2.0
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: ghcr.io/l3montree-dev/devguard/kratos:v26.2.0
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: