2019-08-04 00:34:48 +02:00
|
|
|
version: "3.5"
|
2019-07-29 05:58:05 +02:00
|
|
|
services:
|
|
|
|
#############
|
|
|
|
## Lbrycrd ##
|
|
|
|
#############
|
|
|
|
lbrycrd:
|
2019-12-08 17:48:24 +01:00
|
|
|
image: lbry/lbrycrd:v0.17.3.2-deprecatedrpc
|
2019-08-20 04:18:09 +02:00
|
|
|
restart: "no"
|
2019-07-29 05:58:05 +02:00
|
|
|
ports:
|
|
|
|
- "15201:29246"
|
|
|
|
- "15200:29245"
|
2019-08-04 00:34:48 +02:00
|
|
|
expose:
|
|
|
|
- "29246"
|
|
|
|
- "29245"
|
2019-07-29 05:58:05 +02:00
|
|
|
## host volumes for persistent data such as wallet private keys.
|
|
|
|
volumes:
|
|
|
|
- "./persist:/data"
|
|
|
|
environment:
|
|
|
|
- RUN_MODE=regtest
|
|
|
|
###################
|
|
|
|
## Wallet Server ##
|
|
|
|
###################
|
|
|
|
walletserver:
|
2022-01-14 18:10:58 +01:00
|
|
|
image: lbry/wallet-server:v0.101.1
|
2019-07-29 05:58:05 +02:00
|
|
|
restart: always
|
|
|
|
environment:
|
2019-08-11 04:50:43 +02:00
|
|
|
- DB_DIRECTORY=/database
|
2019-07-29 05:58:05 +02:00
|
|
|
- MAX_SEND=1000000000000000000000
|
2019-08-04 00:34:48 +02:00
|
|
|
- DAEMON_URL=http://lbry:lbry@lbrycrd:29245
|
2019-07-29 05:58:05 +02:00
|
|
|
- MAX_SUBS=1000000000000
|
|
|
|
- BANDWIDTH_LIMIT=80000000000
|
|
|
|
- SESSION_TIMEOUT=10000000000000000000000000
|
|
|
|
- TCP_PORT=50001
|
2021-06-17 17:51:21 +02:00
|
|
|
- ELASTIC_HOST=es01
|
2019-07-29 05:58:05 +02:00
|
|
|
ports:
|
|
|
|
- "15300:50001"
|
2019-08-04 00:34:48 +02:00
|
|
|
expose:
|
|
|
|
- "50001"
|
|
|
|
depends_on:
|
|
|
|
- lbrycrd
|
2021-06-17 17:51:21 +02:00
|
|
|
- es01
|
2019-07-29 05:58:05 +02:00
|
|
|
ulimits:
|
2019-08-04 00:34:48 +02:00
|
|
|
nofile:
|
|
|
|
soft: 90000
|
|
|
|
hard: 90000
|
2019-08-13 05:20:09 +02:00
|
|
|
#command: lbry.wallet.server.coin.LBC
|
2019-07-29 05:58:05 +02:00
|
|
|
command: lbry.wallet.server.coin.LBCRegTest
|
|
|
|
#############
|
2021-06-17 17:51:21 +02:00
|
|
|
## elasticsearch ##
|
|
|
|
#############
|
|
|
|
es01:
|
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.0
|
|
|
|
container_name: es01
|
|
|
|
environment:
|
|
|
|
- node.name=es01
|
|
|
|
- discovery.type=single-node
|
|
|
|
- indices.query.bool.max_clause_count=8196
|
|
|
|
- bootstrap.memory_lock=true
|
|
|
|
- "ES_JAVA_OPTS=-Xms4g -Xmx4g"
|
|
|
|
ulimits:
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
|
|
|
expose:
|
|
|
|
- "9200"
|
|
|
|
#############
|
2019-07-29 05:58:05 +02:00
|
|
|
## Lbrynet ##
|
|
|
|
#############
|
|
|
|
lbrynet:
|
2021-06-17 17:51:21 +02:00
|
|
|
image: lbry/lbrynet:v0.99.0
|
2019-08-11 04:50:43 +02:00
|
|
|
restart: always
|
2019-07-29 05:58:05 +02:00
|
|
|
ports:
|
|
|
|
- "15100:5279"
|
|
|
|
- "15101:5280"
|
2019-08-04 00:34:48 +02:00
|
|
|
expose:
|
|
|
|
- "5279"
|
|
|
|
- "5280"
|
|
|
|
depends_on:
|
|
|
|
- walletserver
|
2019-07-29 05:58:05 +02:00
|
|
|
environment:
|
|
|
|
- LBRY_STREAMING_SERVER=0.0.0.0:5280
|
2022-01-26 07:11:26 +01:00
|
|
|
- LBRY_FEE_PER_NAME_CHAR=0
|
2019-07-29 05:58:05 +02:00
|
|
|
volumes:
|
|
|
|
- "./persist/.lbrynet:/home/lbrynet"
|
|
|
|
- ".:/etc/lbry" #Put your daemon_settings.yml here
|
2019-08-02 03:43:41 +02:00
|
|
|
# /private/var/tmp for OSX and /var/tmp for Linux
|
2019-08-11 04:50:43 +02:00
|
|
|
- "${LOCAL_TMP_DIR}"
|
2019-08-04 00:34:48 +02:00
|
|
|
###########
|
|
|
|
## MySQL ##
|
|
|
|
###########
|
|
|
|
mysql:
|
2021-03-04 03:04:52 +01:00
|
|
|
image: mysql/mysql-server:5.7.33
|
2019-08-04 00:34:48 +02:00
|
|
|
restart: "no"
|
|
|
|
ports:
|
|
|
|
- "15500:3306"
|
|
|
|
expose:
|
|
|
|
- "3306"
|
|
|
|
environment:
|
|
|
|
- MYSQL_ALLOW_EMPTY_PASSWORD=true
|
|
|
|
- MYSQL_DATABASE=lbry
|
|
|
|
- MYSQL_USER=lbry
|
|
|
|
- MYSQL_PASSWORD=lbry
|
|
|
|
- MYSQL_LOG_CONSOLE=true
|
2019-12-10 21:45:29 +01:00
|
|
|
volumes:
|
|
|
|
- "./init.sql:/docker-entrypoint-initdb.d/init.sql"
|
|
|
|
- "./chainquery/docker/my.cnf:/etc/mysql/conf.d/chainquery-optimizations.cnf"
|
2019-08-04 00:34:48 +02:00
|
|
|
###################
|
|
|
|
## Internal APIs ##
|
|
|
|
###################
|
|
|
|
internalapis:
|
2019-12-13 04:28:01 +01:00
|
|
|
image: lbry/internal-apis:master
|
2019-08-04 00:34:48 +02:00
|
|
|
restart: "no"
|
|
|
|
ports:
|
|
|
|
- "15400:8080"
|
|
|
|
expose:
|
|
|
|
- "8080"
|
|
|
|
depends_on:
|
|
|
|
- mysql
|
|
|
|
- lbrycrd
|
|
|
|
environment:
|
|
|
|
- MYSQL_DSN=lbry:lbry@tcp(mysql:3306)/lbry
|
|
|
|
- LBRYCRD_CONNECT=rpc://lbry:lbry@lbrycrd:29245
|
2021-03-04 03:04:52 +01:00
|
|
|
- REPLICA_DSN=lbry:lbry@tcp(mysql:3306)/lbry
|
2019-12-10 21:45:29 +01:00
|
|
|
entrypoint: wait-for-it -t 0 chainquery:6300 -- wait-for-it -t 0 lbrycrd:29245 -- ./latest serve
|
2019-08-27 03:02:50 +02:00
|
|
|
################
|
|
|
|
## Chainquery ##
|
|
|
|
################
|
|
|
|
chainquery:
|
2021-03-04 03:04:52 +01:00
|
|
|
image: lbry/chainquery:master
|
2019-08-27 03:02:50 +02:00
|
|
|
restart: "no"
|
|
|
|
ports:
|
|
|
|
- 6300:6300
|
|
|
|
depends_on:
|
2019-08-27 07:19:14 +02:00
|
|
|
- lbrycrd
|
2019-12-10 21:45:29 +01:00
|
|
|
- mysql
|
2019-08-27 03:02:50 +02:00
|
|
|
## TODO: Uncomment this in a docker-compose.override.yml to allow for external configurations.
|
|
|
|
volumes:
|
2019-08-27 07:19:14 +02:00
|
|
|
- ./chainqueryconfig.toml:/etc/lbry/chainqueryconfig.toml
|
2019-12-10 21:45:29 +01:00
|
|
|
entrypoint: wait-for-it -t 0 lbrycrd:29245 -- wait-for-it -t 0 mysql:3306 -- start
|