forked from dhiway/issuer-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
59 lines (55 loc) · 2.02 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
version: '3.8'
services:
dhiagent:
image: dhiway/issuer-agent:latest
container_name: dhiagent
environment:
- PORT=${AGENT_PORT}
- TYPEORM_HOST=${STUDIO_TYPEORM_HOST}
- TYPEORM_PORT=${TYPEORM_PORT}
- TYPEORM_USERNAME=${STUDIO_TYPEORM_USERNAME}
- TYPEORM_PASSWORD=${STUDIO_TYPEORM_PASSWORD}
- TYPEORM_DATABASE=${STUDIO_TYPEORM_DATABASE}
- TYPEORM_AUTO_SCHEMA_SYNC=${STUDIO_TYPEORM_AUTO_SCHEMA_SYNC}
- TYPEORM_ENTITIES=${STUDIO_TYPEORM_ENTITIES}
- TYPEORM_SUBSCRIBERS=${STUDIO_TYPEORM_SUBSCRIBERS}
- TYPEORM_MIGRATIONS=${STUDIO_TYPEORM_MIGRATIONS}
- TYPEORM_ENTITIES_DIR=${STUDIO_TYPEORM_ENTITIES_DIR}
- TYPEORM_MIGRATIONS_DIR=${STUDIO_TYPEORM_MIGRATIONS_DIR}
- TYPEORM_SUBSCRIBERS_DIR=${STUDIO_TYPEORM_SUBSCRIBERS_DIR}
- TYPEORM_LOGGING=${STUDIO_TYPEORM_LOGGING}
- CORD_WSS_URL=${CORD_WSS_URL}
- AUTHOR_URI=${AUTHOR_URI}
- MNEMONIC=${MNEMONIC}
- WALLET_URL=${WALLET_URL}
- AGENT_DID_NAME=${AGENT_DID_NAME}
- CHAIN_SPACE_ID=${CHAIN_SPACE_ID}
- CHAIN_SPACE_AUTH=${CHAIN_SPACE_AUTH}
ports:
- ${AGENT_PORT}:${AGENT_PORT}
depends_on:
- postgres30
networks:
- local
command: node dist/index.js
postgres30:
image: postgres:14.5-alpine
container_name: postgres30
environment:
POSTGRES_USER: ${STUDIO_TYPEORM_USERNAME}
POSTGRES_PASSWORD: ${STUDIO_TYPEORM_PASSWORD}
POSTGRES_DB: ${STUDIO_TYPEORM_DATABASE}
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- ${STUDIO_TYPEORM_PORT}:${TYPEORM_PORT}
restart: always
volumes:
- postgres-data30:/var/lib/postgresql/data
networks:
- local
volumes:
postgres-data30:
name: postgres-data30
networks:
local:
name: local