You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
2.2 KiB
YAML
95 lines
2.2 KiB
YAML
version: "3.4"
|
|
|
|
volumes:
|
|
redis-db:
|
|
postgresql:
|
|
file-storage:
|
|
gocache:
|
|
#sqlite:
|
|
#maria-conf:
|
|
|
|
services:
|
|
api:
|
|
image: sp4ke/bit4sat
|
|
container_name: bit4sat-api
|
|
build:
|
|
context: .
|
|
dockerfile: ./docker/Dockerfile
|
|
|
|
environment:
|
|
- GO111MODULE=on
|
|
- API_HOST=bit4sat-api
|
|
- LND_GRPC_HOST=lnd
|
|
- LND_GRPC_PORT=10009
|
|
- BIT4SAT_STORAGE_PATH=/storage
|
|
- GOPATH=/go
|
|
- SQL_DB_HOST=postgres
|
|
- SQL_DB_USER=bit4sat
|
|
- SQL_DB_PASS=bit4sat
|
|
- LN_CHARGE_API=ln-charge-test:9112
|
|
- LN_CHARGE_TOKEN=3emU3Fy8VasHCzMaMXHSVJYpQSqH3yXQj8N5cQFBbq3botrudJuR7zQkBBmFSbAmgXs9GD4j4U3J4R2sMfgqPo8q
|
|
- SESSION_SECRET=Ai7fCy36UE5cb9wcmdAxxRXwYyQDsDMr6rYocA6Eava7pdiB29EusLbb9sTYWS1e
|
|
- GRPC_SSL_CIPHER_SUITES="HIGH+ECDSA"
|
|
|
|
# Used in case of ssl problems
|
|
- HTTP_PROXY=http://tinyproxy:8888
|
|
|
|
#deploy:
|
|
#replicas: 1
|
|
#
|
|
ports:
|
|
- "8880:8880"
|
|
|
|
volumes:
|
|
- $PWD:/src
|
|
- gocache:/go
|
|
#- /fastData/go:/go
|
|
#- ./db-storage:/sqlite
|
|
- file-storage:/storage
|
|
|
|
working_dir: /src
|
|
|
|
networks:
|
|
- btc-test-overlay
|
|
- btc-overlay
|
|
- default
|
|
|
|
#maria:
|
|
#image: mariadb:latest
|
|
#environment:
|
|
#- MYSQL_ROOT_PASSWORD=pass
|
|
#- MYSQL_DATABASE=bit4sat
|
|
#- MYSQL_USER=bit4sat
|
|
#- MYSQL_PASSWORD=bit4sat
|
|
|
|
#volumes:
|
|
#- db:/var/lib/mysql
|
|
#- maria-conf:/etc/mysql
|
|
postgres:
|
|
image: postgres:11.2
|
|
environment:
|
|
- POSTGRES_PASSWORD=bit4sat
|
|
- POSTGRES_USER=bit4sat
|
|
- POSTGRES_DB=bit4sat
|
|
|
|
volumes:
|
|
- postgresql:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
|
|
volumes:
|
|
- redis-db:/data
|
|
|
|
command:
|
|
- redis-server
|
|
- --appendonly yes
|
|
|
|
networks:
|
|
btc-test-overlay:
|
|
external: true
|
|
btc-overlay:
|
|
external: true
|