-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
118 lines (110 loc) · 3.29 KB
/
docker-compose.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
services:
attachment-api:
build:
dockerfile: ./Dockerfile
container_name: attachment-api
scale: 0
ports:
- 3000:3000
depends_on:
postgres-attachment-api:
condition: service_healthy
command: /bin/sh -c "npx knex --env production migrate:latest && npm start"
environment:
- LOG_LEVEL=debug
- DB_HOST=postgres-attachment-api
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- DB_NAME=sqnc-attachment-api
- IPFS_HOST=ipfs
- IDENTITY_SERVICE_HOST=identity-service
- IDP_CLIENT_ID=sequence
- IDP_PUBLIC_URL_PREFIX=http://localhost:3080/realms/sequence/protocol/openid-connect
- IDP_INTERNAL_URL_PREFIX=http://keycloak:8080/realms/sequence/protocol/openid-connect
postgres-attachment-api:
image: postgres:17.4-alpine
container_name: postgres-attachment-api
ports:
- 5432:5432
volumes:
- attachment-api-storage:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=sqnc-attachment-api
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U postgres' ]
interval: 10s
timeout: 5s
retries: 5
postgres-identity-service:
image: postgres:17.4-alpine
container_name: postgres-identity
ports:
- 5433:5432
volumes:
- identity-storage:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=sqnc-identity-service
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U postgres' ]
interval: 10s
timeout: 5s
retries: 5
sqnc-identity-service:
image: digicatapult/sqnc-identity-service:latest
container_name: identity-service
depends_on:
postgres-identity-service:
condition: service_healthy
command: /bin/sh -c "npm run db:migrate && npm start"
ports:
- 3002:3000
environment:
- API_HOST=sqnc-node
- DB_HOST=postgres-identity-service
- DB_PORT=5432
- DB_NAME=sqnc-identity-service
- DB_USERNAME=postgres
- DB_PASSWORD=postgres
- SELF_ADDRESS=5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY
- IDP_CLIENT_ID=sequence
- IDP_PUBLIC_URL_PREFIX=http://localhost:3080/realms/sequence/protocol/openid-connect
- IDP_INTERNAL_URL_PREFIX=http://keycloak:8080/realms/sequence/protocol/openid-connect
sqnc-node:
image: digicatapult/sqnc-node:latest
container_name: node
command: --base-path /data/ --dev --unsafe-rpc-external --rpc-max-connections 512 --rpc-cors all
ports:
- 30333:30333
- 9944:9944
- 9933:9933
restart: on-failure
ipfs:
image: ipfs/go-ipfs:v0.33.2
container_name: ipfs
environment:
- |
IPFS_SWARM_KEY=/key/swarm/psk/1.0.0/
/base16/
0000000000000000000000000000000000000000000000000000000000000000
ports:
- 4001:4001
- 8080:8080
- 5001:5001
keycloak:
image: quay.io/keycloak/keycloak:26.1.4
container_name: keycloak
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
ports:
- 3080:8080
volumes:
- ./docker/keycloak:/opt/keycloak/data/import
command: start-dev --import-realm
volumes:
attachment-api-storage:
identity-storage: