-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (44 loc) · 1.14 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
45
version: '3.2'
services:
listener:
tty: true
stdin_open: true
environment:
S3_ENDPOINT: ${S3_ENDPOINT:-http://minio:9000}
AWS_REGION: ${AWS_REGION:-us-east-1}
AWS_BUCKET: ${AWS_BUCKET:-listener}
REDIS_HOST: ${REDIS_HOST}
REDIS_PASSWORD: ${REDIS_PASSWORD}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-listener}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-listener}
command: |
/bin/bash -c
"bundle check || bundle install &&
sleep infinity"
build:
context: .
volumes:
- var-lib-clamav:/var/lib/clamav
- bundle-data:/app/vendor/bundle
- type: bind
consistency: cached
source: .
target: /app/
minio:
image: minio/minio:latest
restart: always
volumes:
- minio-data:/data
environment:
MINIO_ACCESS_KEY: ${AWS_ACCESS_KEY_ID:-listener}
MINIO_SECRET_KEY: ${AWS_SECRET_ACCESS_KEY:-listener}
ports:
- ${MINIO_PORT:-9000}:9000
entrypoint:
- /bin/sh
- -c
- mkdir -p /data/listener; minio --compat server --address ':9000' /data
volumes:
var-lib-clamav:
bundle-data:
minio-data: