-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-compose.yml
44 lines (31 loc) · 1.07 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.1'
# hint: uses .env file
# optional
# set DATADIR for persistent data store , e.g. /var/tmp/Shock
# set CONFIGDIR to path to config
# set LOGDIR to path to local log dir
services:
# the SHOCK object store
# to make SHOCK data persistent uncomment the lines here and in "mongo" below
shock:
image: mgrast/shock
depends_on:
- shock-mongo
entrypoint:
- /go/bin/shock-server
- --hosts=shock-mongo
- --force_yes=true # avoids having shock ask interactive questions regarding db table updates
- --api-url=http://localhost:7445 # Shock returns a "preauth url", which consists of the api url
ports:
- 7445:7445
volumes:
# mount config dir
- ${CONFIGDIR}:/etc/shock.d
# mongoDB for the SHOCK service, provides metadata storage
shock-mongo:
image: mongo:3.6
ports:
- 27017
#volumes:
# persistent data
#- ${DATADIR}/mongo/db:/data/db