71 lines
1.5 KiB
YAML
71 lines
1.5 KiB
YAML
version: "3.4"
|
|
|
|
volumes:
|
|
db:
|
|
maria-conf:
|
|
postgresql:
|
|
file-storage:
|
|
#sqlite:
|
|
gocache:
|
|
|
|
services:
|
|
app:
|
|
image: sp4ke/bit4sat
|
|
build: ./docker
|
|
environment:
|
|
- GO111MODULE=on
|
|
- BIT4SAT_STORAGE_PATH=/storage
|
|
- GOPATH=/go
|
|
- DB_HOST=maria
|
|
- DB_USER=bit4sat
|
|
- DB_PASS=bit4sat
|
|
- LN_CHARGE_API=10.192.122.10:9112
|
|
- LN_CHARGE_TOKEN=3emU3Fy8VasHCzMaMXHSVJYpQSqH3yXQj8N5cQFBbq3botrudJuR7zQkBBmFSbAmgXs9GD4j4U3J4R2sMfgqPo8q
|
|
|
|
#deploy:
|
|
#replicas: 1
|
|
#
|
|
ports:
|
|
- "8880:8880"
|
|
|
|
volumes:
|
|
- $PWD:/src
|
|
- gocache:/go
|
|
#- ./db-storage:/sqlite
|
|
- file-storage:/storage
|
|
|
|
working_dir: /src
|
|
|
|
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:
|
|
- db:/data
|
|
|
|
command:
|
|
- redis-server
|
|
- --appendonly yes
|