-
Notifications
You must be signed in to change notification settings - Fork 39
/
docker-compose.yml
65 lines (60 loc) · 1.71 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.3'
services:
db:
image: postgres:13.10-alpine
environment:
POSTGRES_PASSWORD: password
redis:
image: redis:7.0-alpine
minio:
image: minio/minio
command: /bin/sh -c "mkdir -p /data/bucket && minio server /data"
entrypoint: ''
environment:
MINIO_DOMAIN: minio.rollcall-attendance.docker
MINIO_ACCESS_KEY: dev-access-key
MINIO_SECRET_KEY: dev-secret-key
VIRTUAL_HOST: bucket.minio.rollcall-attendance.docker
web:
build:
context: .
links:
- db
- redis
- minio
environment: &ENV
RAILS_ENV: development
ROLLCALL_ROLE: web
VIRTUAL_HOST: rollcall.docker
DATABASE_URL: postgres://postgres:password@db:5432/rollcall_dev
REDIS_URL: redis://redis:6379
# SENTRY_DSN: 'https://foo:[email protected]/35'
SECRET_KEY_BASE: 'GSOC6DGMsvlLtDkaAagn7HBtxO4FJZECVYVuceZV7LMGMaYTIBXbK5OLa3UC'
RESQUE_USER: 'admin'
RESQUE_PASS: 'changeme'
AWS_ACCESS_KEY_ID: dev-access-key
AWS_SECRET_ACCESS_KEY: dev-secret-key
AWS_REGION: 'us-east-1'
AWS_BUCKET: bucket
AWS_S3_ENDPOINT: http://minio.rollcall-attendance.docker
LTI_KEY: '12345'
LTI_SECRET: 'secret'
LTI_REQUIRE_CANVAS: 'true'
HEAP_ENABLED: 'true'
HEAP_ANALYTICS_APP_ID: "123"
external_links:
- ${PROXY_CONTAINER:-dinghy_http_proxy}:bucket.minio.rollcall-attendance.docker
work:
build:
context: .
links:
- db
- redis
- minio
command: bundle exec inst_jobs run
environment:
<<: *ENV
ROLLCALL_ROLE: 'worker'
QUEUE: "*"
external_links:
- ${PROXY_CONTAINER:-dinghy_http_proxy}:bucket.minio.rollcall-attendance.docker