fix compose

This commit is contained in:
Chakib Benziane 2019-03-24 02:34:36 +01:00
parent b31df12a3d
commit f1a01ebe47

View File

@ -1,7 +1,7 @@
version: "3.4" version: "3.4"
volumes: volumes:
redis: #redis:
file-storage: file-storage:
sqlite: sqlite:
gocache: gocache:
@ -13,6 +13,7 @@ services:
environment: environment:
- GO111MODULE=on - GO111MODULE=on
- BIT4SAT_DB_PATH=/sqlite - BIT4SAT_DB_PATH=/sqlite
- BIT4SAT_STORAGE_PATH=/storage
- GOPATH=/go - GOPATH=/go
#deploy: #deploy:
@ -25,15 +26,16 @@ services:
- $PWD:/src - $PWD:/src
- gocache:/go - gocache:/go
- ./db-storage:/sqlite - ./db-storage:/sqlite
- file-storage:/storage
working_dir: /src working_dir: /src
redis: #redis:
image: redis:alpine #image: redis:alpine
volumes: #volumes:
- redis:/data #- redis:/data
command: #command:
- redis-server #- redis-server
- --appendonly yes #- --appendonly yes