-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
123 lines (116 loc) · 3.19 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
119
120
121
122
123
version: "3.5"
services:
frontend:
build:
context: ./frontend
args:
- NETWORK=$NETWORK
- BLOCKCHAIN_API=$BLOCKCHAIN_API
- PROFILE_API=$PROFILE_API
- SSR_BACKEND_API=$BLOCKCHAIN_API
ports:
- 3000:3000
environment:
- NETWORK=$NETWORK
- PINATA_API_KEY=$PINATA_API_KEY
- PINATA_SECRET=$PINATA_SECRET
- BLOCKCHAIN_API=$BLOCKCHAIN_API
- PROFILE_API=$PROFILE_API
- SSR_BACKEND_API=$BLOCKCHAIN_API
restart: on-failure
backend:
build:
context: ./backend
volumes:
- $MARKETPLACE_PRIVATE_KEY_DIRECTORY:/marketplace
- $PROJECTS_PRIVATE_KEY_DIRECTORY:/projects
ports:
- 3001:3001
environment:
- PORT=3001
- IS_TESTNET=$IS_TESTNET
- SUBMIT_API_BASE_URL=http://cardano-submit-api:8090
- NFT_BECH32_TAXATION_ADDRESS=$NFT_BECH32_TAXATION_ADDRESS
- DATABASE_URL=$DATABASE_URL
- MARKETPLACE_PRIVATE_KEY_FILE=/marketplace/marketplace.skey
- MARKETPLACE_REVENUE_ADDRESS=addr1qytsgcswfrr92mzttxust6a9tdsn7uc3cdduwx2f0jm3tgmvxt62vf2zhyxjrfyhed97qk757ewzxyvvzet3e8vxhh8st0y7e7
- PROJECTS_PRIVATE_KEY_FILE=/projects/projects.skey
- PROJECTS_REVENUE_ADDRESS=addr1qytsgcswfrr92mzttxust6a9tdsn7uc3cdduwx2f0jm3tgmvxt62vf2zhyxjrfyhed97qk757ewzxyvvzet3e8vxhh8st0y7e7
restart: on-failure
profile-backend:
build:
context: ./profilebackend
ports:
- 3002:3002
environment:
- PORT=3002
- TOKEN_SECRET=$TOKEN_SECRET
- DBHOST=postgres
- DBUSER=$DBUSER
- DBPASSWORD=$DBPASSWORD
- RESET_DB_FLAG=$RESET_DB_FLAG
postgres:
image: postgres:11.5-alpine
environment:
- POSTGRES_LOGGING=true
- POSTGRES_DB_FILE=/run/secrets/postgres_db
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
- POSTGRES_USER_FILE=/run/secrets/postgres_user
secrets:
- postgres_password
- postgres_user
- postgres_db
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
restart: on-failure
cardano-node:
image: inputoutput/cardano-node:1.30.1
environment:
- NETWORK=${NETWORK:-mainnet}
volumes:
- ./db:/data/db
- node-ipc:/ipc
restart: on-failure
cardano-submit-api:
image: inputoutput/cardano-submit-api:1.30.0
environment:
- NETWORK=${NETWORK:-mainnet}
volumes:
- node-ipc:/node-ipc
ports:
- 8090:8090
restart: on-failure
cardano-db-sync:
image: inputoutput/cardano-db-sync:11.0.4
environment:
- NETWORK=${NETWORK:-mainnet}
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- RESTORE_SNAPSHOT=${RESTORE_SNAPSHOT:-}
- RESTORE_RECREATE_DB=N
depends_on:
- cardano-node
- postgres
secrets:
- postgres_password
- postgres_user
- postgres_db
volumes:
- db-sync-tmp:/tmp
- db-sync-data:/var/lib/cdbsync
- node-ipc:/node-ipc
restart: on-failure
volumes:
node-ipc:
postgres:
db-sync-data:
db-sync-tmp:
secrets:
postgres_db:
file: ./config/secrets/postgres_db
postgres_password:
file: ./config/secrets/postgres_password
postgres_user:
file: ./config/secrets/postgres_user