-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
71 lines (64 loc) · 1.5 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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
app-migrate:
image: scena
container_name: app-migrate
env_file:
- .docker.env
command: prisma migrate deploy
app:
image: scena
container_name: app
env_file:
- .docker.env
depends_on:
- app-migrate
ports:
- 3000:3000
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
volumes:
db_data:
kratos_db_data: