bit4sat/docker-compose.yml
2019-03-24 22:36:28 +01:00

56 lines
1.1 KiB
YAML

version: "3.4"
volumes:
db:
maria-conf:
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
#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
redis:
image: redis:alpine
volumes:
- db:/data
command:
- redis-server
- --appendonly yes