forked from psu-libraries/scholarsphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
113 lines (111 loc) · 2.53 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3.5'
x-web_env: &web_env
environment:
CI: "true"
REDIS_HOST: redis
REDIS_PASSWORD: redispassword
OAUTH_APP_ID: ${OAUTH_APP_ID}
OAUTH_APP_SECRET: ${OAUTH_APP_SECRET}
DEFAULT_URL_HOST: web
SELENIUM_URL: http://selenium:4444/wd/hub
APP_HOST: web
OAUTH_APP_URL: ${OAUTH_APP_URL}
POSTGRES_DB: scholarsphere
POSTGRES_USER: scholarsphere
POSTGRES_PASSWORD: scholarsphere
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-scholarsphere}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-scholarsphere}
AWS_BUCKET: scholarsphere
AWS_REGION: us-east-1
S3_ENDPOINT: http://minio:9000
RAILS_ENV: ${RAILS_ENV:-development}
SOLR_HOST: solr
SOLR_COLLECTION: scholarsphere
POSTGRES_HOST: db
services:
selenium:
image: selenium/standalone-chrome:3.141.59-xenon
redis:
image: redis:5.0.5
command: redis-server --requirepass redispassword
volumes:
- redis-data:/data
ports:
- "6379:6379"
sidekiq:
tty: true
stdin_open: true
<<: *web_env
build:
context: .
target: base
command:
- /app/bin/sidekiq
volumes:
- bundle-data:/app/vendor/bundle
- node-data:/app/node_modules
- type: bind
source: ./
target: /app/
web:
tty: true
stdin_open: true
<<: *web_env
build:
context: .
target: base
volumes:
- bundle-data:/app/vendor/bundle
- node-data:/app/node_modules
- type: bind
source: ./
target: /app/
ports:
- "3000:3000"
minio:
image: minio/minio:latest
restart: always
volumes:
- minio-data:/data
environment:
MINIO_ACCESS_KEY: ${AWS_ACCESS_KEY_ID:-scholarsphere}
MINIO_SECRET_KEY: ${AWS_SECRET_ACCESS_KEY:-scholarsphere}
ports:
- ${MINIO_PORT:-9000}:9000
entrypoint:
- /bin/sh
- -c
- mkdir -p /data/scholarsphere; minio --compat server --address ':9000' /data
solr:
image: solr:8.2.0-slim
restart: always
volumes:
- solr-data:/var/solr
ports:
- ${SOLR_PORT:-8983}:8983
command: [
"solr-foreground",
"-DzkRun"
]
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
db:
environment:
POSTGRES_PASSWORD: scholarsphere
POSTGRES_USER: scholarsphere
POSTGRES_DB: scholarsphere
image: postgres:10
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
volumes:
redis-data:
bundle-data:
node-data:
minio-data:
solr-data:
db-data: