This repository was archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yml
118 lines (110 loc) · 3.09 KB
/
docker-compose.local.yml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: '3.3'
networks:
internal:
garnet:
services:
yarn:
image: node:18.13
working_dir: /workspace
volumes:
- ./:/workspace
entrypoint: yarn
networks:
- internal
oathkeeper:
image: oryd/oathkeeper:v0.40.6
command: serve --config /config/oathkeeper/oathkeeper.yaml
volumes:
- ./config/ory/oathkeeper/local/oathkeeper.yaml:/config/oathkeeper/oathkeeper.yaml
- ./config/ory/oathkeeper/local/jwks.json:/config/oathkeeper/jwks.json
- ./config/ory/oathkeeper/local/access-rules.yaml:/config/oathkeeper/access-rules.yaml
ports:
- '4455:4455'
- '4456:4456'
labels:
- 'traefik.http.routers.oathkeeper-app.entrypoints=websecure'
- 'traefik.http.routers.oathkeeper-app.rule=Host(`stage.garnet.pet-project.habr.com`)'
- 'traefik.http.routers.oathkeeper-app.tls=true'
- 'traefik.http.routers.oathkeeper-app.middlewares=cor'
- 'traefik.http.middlewares.cor.headers.customResponseHeaders.Access-Control-Allow-Origin=*'
- 'traefik.http.middlewares.cor.headers.customResponseHeaders.Access-Control-Allow-Methods=POST, GET, OPTIONS'
networks:
- garnet
- internal
identity:
restart: unless-stopped
image: node:18.13
working_dir: /workspace
entrypoint: yarn workspace @identity/renderer-entrypoint dev
environment:
- NEXT_PUBLIC_KRATOS_URL=http://localhost:4455/kratos
volumes:
- ./:/workspace
ports:
- '3010:3010'
depends_on:
- yarn
- kratos
networks:
- internal
app:
restart: unless-stopped
image: node:18.13
working_dir: /workspace
environment:
- NEXT_PUBLIC_KRATOS_URL=http://localhost:4455/kratos
volumes:
- ./:/workspace
entrypoint: yarn workspace @app/renderer-entrypoint dev
ports:
- '3020:3020'
depends_on:
- yarn
networks:
- internal
kratos:
depends_on:
- kratos-migrate
- db
image: oryd/kratos:v1.0.0
ports:
- '4433:4433'
restart: unless-stopped
environment:
- DSN=postgres://postgres:password@db:5432/db?sslmode=disable&max_conns=20&max_idle_conns=4
- LOG_LEVEL=trace
command: serve -c /config/kratos/kratos.yaml --dev --watch-courier
volumes:
- type: bind
source: ./config/ory/kratos/local
target: /config/kratos
- type: bind
source: /etc/ssl/certs
target: /etc/ssl/certs
networks:
- internal
kratos-migrate:
depends_on:
- db
image: docker.io/oryd/kratos:v1.0.0
environment:
- DSN=postgres://postgres:password@db:5432/db?sslmode=disable&max_conns=20&max_idle_conns=4
volumes:
- type: bind
source: ./config/ory/kratos/local
target: /config/kratos
command: -c /config/kratos/kratos.yaml migrate sql -e --yes
restart: on-failure
networks:
- internal
db:
image: bitnami/postgresql
restart: unless-stopped
environment:
- POSTGRESQL_PASSWORD=password
- POSTGRESQL_DATABASE=db
- POSTGRESQL_USER=postgres
ports:
- '5432:5432'
networks:
- internal