mongo init

This commit is contained in:
Karol Wypchlo 2021-09-27 19:54:53 +02:00
parent e24e98e178
commit 86f3bf45ff
No known key found for this signature in database
GPG Key ID: C92C016317A964D0
2 changed files with 10 additions and 4 deletions

View File

@ -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:

View File

@ -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";