-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
185 lines (184 loc) · 4.86 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
185 lines (184 loc) · 4.86 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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
version: "3"
services:
sqlite:
image: busybox
volumes:
- hydra-sqlite:/mnt/sqlite
command: "chmod -R 777 /mnt/sqlite"
mongodb:
container_name: mongodb
image: mongo:6.0.17
restart: unless-stopped
command: ["--replSet", "rs0", "--bind_ip_all"]
volumes:
- ${DATA_PATH}/mongodb:/data:delegated
- ${DATA_PATH}/mongodb/db:/data/db:delegated
ports:
- "${MONGODB_PORT:-27017}:27017"
healthcheck:
test: |
mongosh --quiet --eval "
try { rs.status().ok }
catch (e) {
rs.initiate({ _id: 'rs0', members: [{ _id: 0, host: 'localhost:27017' }] }).ok
}
"
interval: 10s
start_period: 30s
timeout: 5s
retries: 5
postgres-documentdb:
container_name: postgres-documentdb
image: ghcr.io/ferretdb/postgres-documentdb:17-0.102.0-ferretdb-2.1.0
restart: unless-stopped
environment:
- POSTGRES_USER=ferretdb
- POSTGRES_PASSWORD=ferretdb
- POSTGRES_DB=postgres
volumes:
- ${DATA_PATH}/postgres-documentdb:/var/lib/postgresql/data
ports:
- "5433:5432"
networks:
- intranet
ferretdb:
container_name: ferretdb
image: ghcr.io/ferretdb/ferretdb:2.1.0
restart: unless-stopped
environment:
- FERRETDB_HANDLER=postgresql
- FERRETDB_POSTGRESQL_URL=postgres://ferretdb:ferretdb@postgres-documentdb:5432/postgres
ports:
- "27018:27017"
depends_on:
- postgres-documentdb
networks:
- intranet
localstack:
container_name: aletheia-localstack
image: localstack/localstack:3.7.2
ports:
- "127.0.0.1:4510-4559:4510-4559" # external service port range
- "127.0.0.1:4566:4566" # LocalStack Edge Proxy
environment:
- SERVICES=s3,iam
- DEBUG=1
- DATA_DIR=${DATA_DIR:-/data/localstack}
- HOST_TMP_FOLDER=${TMPDIR:-/tmp/}localstack
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${DATA_DIR:-/data/localstack}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
kratos-migrate:
image: oryd/kratos:v0.13.0
environment:
- DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true&mode=rwc
volumes:
- type: volume
source: kratos-sqlite
target: /var/lib/sqlite
read_only: false
- type: bind
source: ./ory_config
target: /etc/config/kratos
command: -c /etc/config/kratos/kratos.yml migrate sql -e --yes
restart: on-failure
networks:
- intranet
kratos-selfservice-ui-node:
image: oryd/kratos-selfservice-ui-node:v0.13.0
ports:
- "4455:4455"
environment:
- PORT=4455
- SECURITY_MODE=
- KRATOS_BROWSER_URL=http://127.0.0.1:4433/
networks:
- intranet
restart: on-failure
kratos:
depends_on:
- kratos-migrate
image: oryd/kratos:v0.13.0
ports:
- "4433:4433" # public
- "4434:4434" # admin
restart: unless-stopped
environment:
- DSN=sqlite:///var/lib/sqlite/db.sqlite?_fk=true
- LOG_LEVEL=trace
command: serve -c /etc/config/kratos/kratos.yml --dev --watch-courier
volumes:
- type: volume
source: kratos-sqlite
target: /var/lib/sqlite
read_only: false
- type: bind
source: ./ory_config
target: /etc/config/kratos
networks:
- intranet
mailslurper:
image: oryd/mailslurper:latest-smtps
ports:
- "4436:4436"
- "4437:4437"
networks:
- intranet
hydra:
image: oryd/hydra:v2.3.0
build:
context: .
dockerfile: .docker/Dockerfile-local-build
ports:
- "4444:4444" # Public port
- "4445:4445" # Admin port
- "5555:5555" # Port for hydra token user
command: serve -c /etc/config/hydra/hydra.yml all --dev
volumes:
- hydra-sqlite:/mnt/sqlite:rw
- type: bind
source: ./ory_config
target: /etc/config/hydra
pull_policy: missing
environment:
- DSN=sqlite:///mnt/sqlite/db.sqlite?_fk=true&mode=rwc
restart: unless-stopped
depends_on:
- hydra-migrate
- sqlite
networks:
- intranet
hydra-migrate:
image: oryd/hydra:v2.3.0
build:
context: .
dockerfile: .docker/Dockerfile-local-build
environment:
- DSN=sqlite:///mnt/sqlite/db.sqlite?_fk=true&mode=rwc
command: migrate -c /etc/config/hydra/hydra.yml sql up -e --yes
pull_policy: missing
volumes:
- hydra-sqlite:/mnt/sqlite:rw
- type: bind
source: ./ory_config
target: /etc/config/hydra
restart: on-failure
networks:
- intranet
depends_on:
- sqlite
consent:
environment:
- HYDRA_ADMIN_URL=http://hydra:4445
image: oryd/hydra-login-consent-node:v2.3.0
ports:
- "3000:3000"
restart: unless-stopped
networks:
- intranet
networks:
intranet:
volumes:
kratos-sqlite:
hydra-sqlite: