mongo init
This commit is contained in:
parent
e24e98e178
commit
86f3bf45ff
|
@ -183,6 +183,8 @@ services:
|
|||
container_name: ipfs-api
|
||||
restart: unless-stopped
|
||||
logging: *default-logging
|
||||
env_file:
|
||||
- .env
|
||||
networks:
|
||||
shared:
|
||||
ipv4_address: 10.10.10.58
|
||||
|
@ -196,6 +198,12 @@ services:
|
|||
container_name: ipfs-mongo
|
||||
restart: unless-stopped
|
||||
logging: *default-logging
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- MONGO_INITDB_ROOT_USERNAME: ${IPFS_MONGO_USERNAME}
|
||||
- MONGO_INITDB_ROOT_PASSWORD: ${IPFS_MONGO_PASSWORD}
|
||||
- MONGO_INITDB_DATABASE: ipfs-to-skynet
|
||||
volumes:
|
||||
- ./docker/data/ipfs-mongo/db:/data/db
|
||||
networks:
|
||||
|
|
|
@ -6,7 +6,5 @@ export const IPFS_INFURA_API =
|
|||
export const IPFS_GATEWAY =
|
||||
process.env.IPFS_GATEWAY || "https://cloudflare-ipfs.com/ipfs/";
|
||||
export const SKYNET_PORTAL = process.env.SKYNET_PORTAL || "https://siasky.net";
|
||||
export const MONGO_CONNECTIONSTRING =
|
||||
process.env.MONGO_CONNECTIONSTRING ||
|
||||
"mongodb://root:password@ipfs-mongo:27017";
|
||||
export const MONGO_DBNAME = process.env.MONGO_DBNAME || "ipfs-to-skynet";
|
||||
export const MONGO_CONNECTIONSTRING = `mongodb://${process.env.IPFS_MONGO_USERNAME}:${process.env.IPFS_MONGO_PASSWORD}@ipfs-mongo:27017`;
|
||||
export const MONGO_DBNAME = "ipfs-to-skynet";
|
||||
|
|
Reference in New Issue