forked from logto-io/logto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yml
48 lines (44 loc) · 1.35 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
# This file has been added on OGCIO fork
services:
app:
depends_on:
postgres:
condition: service_healthy
image: local-logto:latest
entrypoint:
[
"sh",
"-c",
"npm run cli db seed -- --swe && npm run cli db alteration deploy latest && npm run cli db ogcio -- --seeder-filepath=\"/etc/logto/packages/cli/src/commands/database/ogcio/ogcio-seeder-local.json\" && npm start"
]
ports:
- 3301:3301
- 3302:3302
environment:
- TRUST_PROXY_HEADER=1
- DB_URL=postgres://postgres:p0stgr3s@postgres:5433/logto
# Mandatory for GitPod to map host env to the container, thus GitPod can dynamically configure the public URL of Logto;
# Or, you can leverage it for local testing.
- ENDPOINT
- ADMIN_ENDPOINT
- PORT=3301
- ADMIN_PORT=3302
- MOCK_TOKEN_ENDPOINT=http://mygovid-mock-service:4005/logto/mock/token
- MOCK_KEYS_ENDPOINT=http://mygovid-mock-service:4005/logto/mock/keys
- ALLOWED_ENTRAID_TIDS=ogcio-tid
mygovid-mock-service:
image: local-mygovid-mock-service:latest
build:
dockerfile: ./mygovid-mock-service/Dockerfile
ports:
- 4005:4005
postgres:
extends:
file: docker-compose-db.yml
service: postgres
volumes:
db:
driver: local
networks:
logto_network:
external: true