Multiple changes
chainquery has an added Adminer container now. reflector.go has a base config.tmpl file for testing string modification. Exporting GOROOT now in Dockerfile
This commit is contained in:
parent
0eb598bf66
commit
753b711e96
3 changed files with 35 additions and 1 deletions
|
@ -32,6 +32,31 @@ services:
|
||||||
- ./data/db:/var/lib/mysql
|
- ./data/db:/var/lib/mysql
|
||||||
- ./my.cnf:/etc/mysql/conf.d/chainquery-optimizations.cnf
|
- ./my.cnf:/etc/mysql/conf.d/chainquery-optimizations.cnf
|
||||||
|
|
||||||
|
#######################
|
||||||
|
## Adminer container ##
|
||||||
|
#######################
|
||||||
|
adminer:
|
||||||
|
image: adminer
|
||||||
|
# restart: always
|
||||||
|
links:
|
||||||
|
- "mysql:database"
|
||||||
|
depends_on:
|
||||||
|
- mysql
|
||||||
|
labels:
|
||||||
|
# https://docs.traefik.io/user-guide/docker-and-lets-encrypt/
|
||||||
|
- "traefik.backend=adminer"
|
||||||
|
- "traefik.docker.network=lbrynet"
|
||||||
|
- "traefik.frontend.rule=Host:adminer.lbry-demo.nixc.us"
|
||||||
|
- "traefik.expose=true"
|
||||||
|
- "traefik.port=8080"
|
||||||
|
# healthcheck:
|
||||||
|
# test: ["CMD", "curl", "--fail", "http://localhost:8080/", "||", "exit", "1"]
|
||||||
|
networks:
|
||||||
|
lbrynet:
|
||||||
|
ipv4_address: 10.10.0.19
|
||||||
|
aliases:
|
||||||
|
- adminer
|
||||||
|
|
||||||
################
|
################
|
||||||
## Chainquery ##
|
## Chainquery ##
|
||||||
################
|
################
|
||||||
|
|
|
@ -7,7 +7,8 @@ ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint
|
||||||
|
|
||||||
RUN adduser reflector --gecos GECOS --shell /bin/bash --disabled-password --home /data/
|
RUN adduser reflector --gecos GECOS --shell /bin/bash --disabled-password --home /data/
|
||||||
|
|
||||||
RUN go get -u github.com/lbryio/reflector.go && \
|
RUN export GOROOT=$GOPATH/bin && \
|
||||||
|
go get -v -u github.com/lbryio/reflector.go && \
|
||||||
cd "/go/src/github.com/lbryio/reflector.go" && \
|
cd "/go/src/github.com/lbryio/reflector.go" && \
|
||||||
make && \
|
make && \
|
||||||
mv ./bin/prism-bin /usr/bin/prism-bin && \
|
mv ./bin/prism-bin /usr/bin/prism-bin && \
|
||||||
|
|
8
reflector.go/compile/config.tmpl
Normal file
8
reflector.go/compile/config.tmpl
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"aws_id": "YOUR-AWS-ID",
|
||||||
|
"aws_secret": "YOUR-AWS-SECRET",
|
||||||
|
"bucket_region": "YOUR-BUCKET-REGION",
|
||||||
|
"bucket_name": "YOUR-BUCKET-NAME",
|
||||||
|
"db_conn": "USER:PASSWORD@tcp(localhost:3306)/DBNAME",
|
||||||
|
"slack_hook_url": ""
|
||||||
|
}
|
Loading…
Reference in a new issue