docker-compose.yml 2.47 KB
Newer Older
1
version: "3"
Mark Beamer Jr's avatar
ci test    
Mark Beamer Jr committed
2
3
4
networks:
  e2e:
    external: false
5
6
7
8
9
10
services:
  #############
  ## Lbrycrd ##
  #############
  lbrycrd:
    image: lbry/lbrycrd:v0.12.4.1
Mark Beamer Jr's avatar
ci test    
Mark Beamer Jr committed
11
12
    networks:
      - e2e
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    restart: always
    ports:
      - "15201:29246"
      - "15200:29245"
    ## host volumes for persistent data such as wallet private keys.
    volumes:
      - "./persist:/data"
    environment:
      - RUN_MODE=regtest
  ###################
  ## Wallet Server ##
  ###################
  walletserver:
    image: lbry/wallet-server:v0.38.5
Mark Beamer Jr's avatar
ci test    
Mark Beamer Jr committed
27
28
    networks:
      - e2e
29
30
31
32
33
34
35
36
37
38
39
40
41
    restart: always
    volumes:
      - "./persist/.walletserver/database:/database"
    environment:
      - DB_DIRECTORY=/database
      - MAX_SEND=1000000000000000000000
      - DAEMON_URL=http://lbry:lbry@lbrycrd:29245/
      - MAX_SUBS=1000000000000
      - BANDWIDTH_LIMIT=80000000000
      - SESSION_TIMEOUT=10000000000000000000000000
      - TCP_PORT=50001
    ports:
      - "15300:50001"
42
43
    depends_on:
      - lbrycrd
44
45
46
47
48
49
50
51
52
    ulimits:
      nofile: 90000
    #    command: lbry.wallet.server.coin.LBC
    command: lbry.wallet.server.coin.LBCRegTest
  #############
  ## Lbrynet ##
  #############
  lbrynet:
    image: lbry/lbrynet:v0.38.5
Mark Beamer Jr's avatar
ci test    
Mark Beamer Jr committed
53
54
    networks:
      - e2e
55
56
57
58
    restart: "no"
    ports:
      - "15100:5279"
      - "15101:5280"
59
60
    depends_on:
      - walletserver
61
62
63
64
65
    environment:
      - LBRY_STREAMING_SERVER=0.0.0.0:5280
    volumes:
      - "./persist/.lbrynet:/home/lbrynet"
      - ".:/etc/lbry" #Put your daemon_settings.yml here
66
      # /private/var/tmp for OSX and /var/tmp for Linux
67
68
69
70
71
72
73
      - "${LOCAL_TMP_DIR}:/var/tmp"
    #entrypoint: wait-for-it walletserver:50001 -- start
  ###########
  ## MySQL ##
  ###########
  mysql:
    image: mysql/mysql-server:5.7.27
Mark Beamer Jr's avatar
ci test    
Mark Beamer Jr committed
74
75
    networks:
      - e2e
76
77
78
79
80
81
82
83
84
85
86
87
88
89
    restart: "no"
    ports:
      - "15500:3306"
    environment:
      - MYSQL_ALLOW_EMPTY_PASSWORD=true
      - MYSQL_DATABASE=lbry
      - MYSQL_USER=lbry
      - MYSQL_PASSWORD=lbry
      - MYSQL_LOG_CONSOLE=true
  ###################
  ## Internal APIs ##
  ###################
  internalapis:
    image: lbry/internal-apis:latest
Mark Beamer Jr's avatar
ci test    
Mark Beamer Jr committed
90
91
    networks:
      - e2e
92
93
94
95
96
97
    restart: "no"
    ports:
      - "15400:8080"
    depends_on:
      - mysql
      - lbrycrd
Mark Beamer Jr's avatar
ci test    
Mark Beamer Jr committed
98
      - lbrynet
99
100
101
102
103
104
    environment:
      - MYSQL_DSN=lbry:lbry@tcp(mysql:3306)/lbry
      - LBRYCRD_CONNECT=rpc://lbry:lbry@lbrycrd:29245
      - MYSQL_USER=lbry
      - MYSQL_PASS=lbry
      - MYSQL_DATABASE=lbry
Mark Beamer Jr's avatar
ci test    
Mark Beamer Jr committed
105
    entrypoint: wait-for-it mysql:3306 -- wait-for-it lbrynet:5279 -- ./latest serve