forked from axonweb3/axon-faucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.17 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
version: '3'
services:
faucet-server:
container_name: faucet-server
build: ./
environment:
AXON_FAUCET_RPC_URL: ${AXON_FAUCET_RPC_URL}
AXON_FAUCET_CHAIN_ID: ${AXON_FAUCET_CHAIN_ID}
AXON_FAUCET_REQUIRED_CONFIRMATIONS: ${AXON_FAUCET_REQUIRED_CONFIRMATIONS}
AXON_FAUCET_CLAIM_VALUE: ${AXON_FAUCET_CLAIM_VALUE}
AXON_FAUCET_MONGODB_URL: ${AXON_FAUCET_MONGODB_URL}
AXON_FAUCET_MONGODB_DB: ${AXON_FAUCET_MONGODB_DB}
AXON_FAUCET_MONGODB_TRANSACTIONS_COLLECTION: ${AXON_FAUCET_MONGODB_TRANSACTIONS_COLLECTION}
AXON_FAUCET_MONGODB_ADDRESSES_COLLECTION: ${AXON_FAUCET_MONGODB_ADDRESSES_COLLECTION}
ports:
- "8502:3000"
depends_on:
- faucet-mongo
networks:
- faucet-network
faucet-mongo:
image: mongo:latest
container_name: faucet-mongo
restart: always
user: root
privileged: true
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: ${AXON_FAUCET_MONGODB_PASSWORD}
volumes:
- "./data/db:/data/db"
- "./data/log:/data/log"
ports:
- "27017:27017"
networks:
- faucet-network
networks:
faucet-network:
driver: bridge