bit4sat/docker-compose.yml

56 lines
1.1 KiB
YAML
Raw Normal View History

2019-03-23 16:56:37 +00:00
version: "3.4"
volumes:
2019-03-24 11:10:56 +00:00
db:
2019-03-24 21:36:28 +00:00
maria-conf:
2019-03-23 18:29:48 +00:00
file-storage:
2019-03-24 21:36:28 +00:00
#sqlite:
2019-03-23 18:29:48 +00:00
gocache:
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-24 21:36:28 +00:00
- DB_HOST=maria
- DB_USER=bit4sat
- DB_PASS=bit4sat
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-24 11:10:56 +00:00
maria:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=pass
- MYSQL_DATABASE=bit4sat
- MYSQL_USER=bit4sat
- MYSQL_PASSWORD=bit4sat
volumes:
- db:/var/lib/mysql
2019-03-24 21:36:28 +00:00
- maria-conf:/etc/mysql
redis:
image: redis:alpine
2019-03-23 16:56:37 +00:00
2019-03-24 21:36:28 +00:00
volumes:
- db:/data
2019-03-23 18:29:48 +00:00
2019-03-24 21:36:28 +00:00
command:
- redis-server
- --appendonly yes