-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
70 lines (66 loc) · 2.3 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
version: "2"
services:
database:
image: mongo:4
container_name: data-feeds-explorer-db
ports:
- $MONGO_PORT:27017
environment:
MONGO_DATABASE_USERNAME: $MONGO_DATABASE_USERNAME
MONGO_DATABASE_PASSWORD: $MONGO_DATABASE_PASSWORD
MONGO_INITDB_DATABASE: $MONGO_INITDB_DATABASE
MONGO_INITDB_ROOT_USERNAME: $MONGO_INITDB_ROOT_USERNAME
MONGO_INITDB_ROOT_PASSWORD: $MONGO_INITDB_ROOT_PASSWORD
volumes:
- ./init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh
- ./mongodb_data:/data/db
# mongo-express:
# image: "mongo-express"
# container_name: mongo-express
# ports:
# - "8081:8081"
# depends_on:
# - database
# environment:
# ME_CONFIG_MONGODB_SERVER: database
# ME_CONFIG_MONGODB_AUTH_DATABASE: $MONGO_INITDB_DATABASE
# ME_CONFIG_MONGODB_AUTH_USERNAME: $MONGO_DATABASE_USERNAME
# ME_CONFIG_MONGODB_AUTH_PASSWORD: $MONGO_DATABASE_PASSWORD
# ME_CONFIG_BASICAUTH_USERNAME: $ME_CONFIG_BASICAUTH_USERNAME
# ME_CONFIG_BASICAUTH_PASSWORD: $ME_CONFIG_BASICAUTH_PASSWORD
# ME_CONFIG_MONGODB_ENABLE_ADMIN: "false"
api:
image: witnet/data-feeds-explorer-api
ports:
- "4000:4000"
links:
- database
depends_on:
- database
environment:
SERVER_PORT: $SERVER_PORT
DB_HOSTNAME: $DB_HOSTNAME
MONGO_PORT: $MONGO_PORT
MONGO_DATABASE_USERNAME: $MONGO_DATABASE_USERNAME
MONGO_DATABASE_PASSWORD: $MONGO_DATABASE_PASSWORD
MONGO_INITDB_DATABASE: $MONGO_INITDB_DATABASE
MONGO_INITDB_ROOT_USERNAME: $MONGO_INITDB_ROOT_USERNAME
MONGO_INITDB_ROOT_PASSWORD: $MONGO_INITDB_ROOT_PASSWORD
ME_CONFIG_BASICAUTH_USERNAME: $ME_CONFIG_BASICAUTH_USERNAME
ME_CONFIG_BASICAUTH_PASSWORD: $ME_CONFIG_BASICAUTH_PASSWORD
ETHEREUM_MAINNET_PROVIDER: $ETHEREUM_MAINNET_PROVIDER
ETHEREUM_GOERLI_PROVIDER: $ETHEREUM_GOERLI_PROVIDER
ETHEREUM_KOVAN_PROVIDER: $ETHEREUM_KOVAN_PROVIDER
ETHEREUM_RINKEBY_PROVIDER: $ETHEREUM_RINKEBY_PROVIDER
CONFLUX_TESTNET_PROVIDER: $CONFLUX_TESTNET_PROVIDER
CONFLUX_MAINNET_PROVIDER: $CONFLUX_MAINNET_PROVIDER
ui:
image: witnet/data-feeds-explorer-ui
links:
- api
ports:
- "8080:8080"
depends_on:
- api
environment:
API_ENDPOINT: "http://api:4000"