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