-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
104 lines (102 loc) · 2.66 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
x-web_env: &web_env
environment:
REDIS_HOST: redis
SOLR_USERNAME: scholarsphere
SOLR_PASSWORD: scholarsphere
BUNDLE_DEFAULT_INSTALL_USES_PATH: vendor/bundle
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}
OAUTH_TOKEN_URL: ${OAUTH_TOKEN_URL}
OAUTH_AUTHORIZE_URL: ${OAUTH_AUTHORIZE_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: ${S3_ENDPOINT:-http://docker.for.mac.localhost:9000}
RAILS_ENV: ${RAILS_ENV:-development}
SOLR_HOST: solr
SOLR_COLLECTION: scholarsphere
POSTGRES_HOST: db
services:
redis:
image: redis:6.2.6
command: redis-server --requirepass redispassword
volumes:
- redis-data:/data
ports:
- "6379:6379"
web:
tty: true
stdin_open: true
<<: *web_env
build:
context: .
target: dev
volumes:
- bundle-data:/app/vendor/bundle
- node-data:/app/node_modules
- type: bind
source: ./
target: /app
ports:
- "3000:3000"
minio:
image: minio/minio:RELEASE.2021-03-17T02-33-02Z
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.11.1-slim
restart: always
environment:
SOLR_STOP_WAIT: 10
SOLR_USERNAME: scholarsphere
SOLR_PASSWORD: scholarsphere
volumes:
- solr-data:/var/solr
ports:
- ${SOLR_PORT:-8983}:8983
command: [
"/bin/bash",
"-c",
"solr -c && solr auth enable -credentials $$SOLR_USERNAME:$$SOLR_PASSWORD -z localhost:9983; solr stop && solr -c -f",
]
db:
environment:
POSTGRES_PASSWORD: scholarsphere
POSTGRES_USER: scholarsphere
POSTGRES_DB: scholarsphere
image: postgres:15.2
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
networks:
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1400
volumes:
redis-data:
bundle-data:
node-data:
minio-data:
solr-data:
db-data: