-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yaml
47 lines (44 loc) · 1.2 KB
/
docker-compose.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
version: '3.7'
# postgresql database for local development
services:
postgresql:
image: ghcr.io/l3montree-dev/devguard-postgresql:v0.4.16
# 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
kratos-migrate:
image: oryd/kratos:v1.1.0
depends_on:
- postgresql
environment:
- DSN=postgres://kratos:secret@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:
image: oryd/kratos:v1.1.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:secret@postgresql:5432/kratos?sslmode=disable
- LOG_LEVEL=trace
volumes:
- type: bind
source: ./.kratos
target: /etc/config/kratos
volumes:
postgres: