bit4sat/docker-compose.yml

71 lines
1.5 KiB
YAML
Raw Normal View History

2019-03-23 16:56:37 +00:00
version: "3.4"
volumes:
2019-03-27 15:35:36 +00:00
redis-db:
2019-03-27 09:57:01 +00:00
postgresql:
2019-03-23 18:29:48 +00:00
file-storage:
gocache:
2019-03-27 15:35:36 +00:00
#sqlite:
#maria-conf:
2019-03-23 16:56:37 +00:00
services:
2019-03-24 11:10:56 +00:00
app:
2019-03-23 16:56:37 +00:00
image: sp4ke/bit4sat
2019-03-23 18:29:48 +00:00
build: ./docker
2019-03-23 16:56:37 +00:00
environment:
- GO111MODULE=on
2019-03-24 01:34:36 +00:00
- BIT4SAT_STORAGE_PATH=/storage
2019-03-23 18:29:48 +00:00
- GOPATH=/go
2019-03-27 15:35:36 +00:00
- DB_HOST=postgres
2019-03-24 21:36:28 +00:00
- DB_USER=bit4sat
- DB_PASS=bit4sat
2019-03-26 21:01:54 +00:00
- LN_CHARGE_API=10.192.122.10:9112
- LN_CHARGE_TOKEN=3emU3Fy8VasHCzMaMXHSVJYpQSqH3yXQj8N5cQFBbq3botrudJuR7zQkBBmFSbAmgXs9GD4j4U3J4R2sMfgqPo8q
2019-03-23 16:56:37 +00:00
2019-03-23 18:29:48 +00:00
#deploy:
#replicas: 1
#
ports:
- "8880:8880"
2019-03-23 16:56:37 +00:00
volumes:
- $PWD:/src
2019-03-23 18:29:48 +00:00
- gocache:/go
2019-03-24 21:36:28 +00:00
#- ./db-storage:/sqlite
2019-03-24 01:34:36 +00:00
- file-storage:/storage
2019-03-23 16:56:37 +00:00
working_dir: /src
2019-03-27 15:35:36 +00:00
#maria:
#image: mariadb:latest
#environment:
#- MYSQL_ROOT_PASSWORD=pass
#- MYSQL_DATABASE=bit4sat
#- MYSQL_USER=bit4sat
#- MYSQL_PASSWORD=bit4sat
2019-03-24 11:10:56 +00:00
2019-03-27 15:35:36 +00:00
#volumes:
#- db:/var/lib/mysql
#- maria-conf:/etc/mysql
2019-03-27 09:57:01 +00:00
postgres:
image: postgres:11.2
environment:
- POSTGRES_PASSWORD=bit4sat
- POSTGRES_USER=bit4sat
- POSTGRES_DB=bit4sat
volumes:
- postgresql:/var/lib/postgresql/data
2019-03-24 21:36:28 +00:00
redis:
image: redis:alpine
2019-03-23 16:56:37 +00:00
2019-03-24 21:36:28 +00:00
volumes:
2019-03-27 15:35:36 +00:00
- redis-db:/data
2019-03-23 18:29:48 +00:00
2019-03-24 21:36:28 +00:00
command:
- redis-server
- --appendonly yes