-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
122 lines (119 loc) · 3.48 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
114
115
116
117
118
119
120
121
version: '3.4'
volumes:
streaming:
database:
fedora:
solr:
services:
db:
image: postgres:14-alpine
volumes:
- ./db/init-db:/docker-entrypoint-initdb.d
- ./db_data:/data
environment:
- AVALON_DB_PASSWORD
- FEDORA_DB_PASSWORD
- PGDATA=/data
- POSTGRES_USER=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
fedora:
image: avalonmediasystem/fedora:4.7.5
build:
context: ./fedora
args:
- FEDORA_VERSION=4.7.5
environment:
- FEDORA_DB_PASSWORD
- JAVA_OPTIONS=-Dfcrepo.postgresql.password=${FEDORA_DB_PASSWORD} -Dfcrepo.postgresql.username=fedora -Dfcrepo.postgresql.host=db -Dfcrepo.modeshape.configuration=classpath:/config/jdbc-postgresql/repository.json -Dfcrepo.home=/data
depends_on:
- db
volumes:
- fedora:/data
solr:
image: solr:9
volumes:
- ./solr/conf:/opt/solr/avalon_conf
- ./solr_data:/var/solr
command:
- solr-precreate
- avalon
- /opt/solr/avalon_conf
hls:
image: avalonmediasystem/nginx
build:
context: ./nginx
environment:
AVALON_DOMAIN: http://avalon:3000
volumes:
- streaming:/data
ports:
- "8880:80"
redis:
image: redis:alpine
avalon: &avalon
image: avalonmediasystem/avalon:7
build:
context: https://github.com/avalonmediasystem/avalon.git#v7.8
target: prod
command: bash -c "bundle exec rake db:migrate && bundle exec rails server -b 0.0.0.0"
depends_on:
- db
- fedora
- solr
- redis
- hls
environment:
- APP_NAME
- SECRET_KEY_BASE
- ASSET_HOST
- SETTINGS__DOMAIN
- DATABASE_URL=postgres://avalon:${AVALON_DB_PASSWORD}@db/avalon
- SETTINGS__DROPBOX__PATH=/masterfiles/dropbox
- SETTINGS__DROPBOX__UPLOAD_URI=./masterfiles/dropbox
- SETTINGS__ENCODING__WORKING_FILE_PATH=/masterfiles
- SETTINGS__EMAIL__COMMENTS
- SETTINGS__EMAIL__NOTIFICATION
- SETTINGS__EMAIL__SUPPORT
- ENCODE_WORK_DIR=/streamfiles
- FEDORA_BASE_PATH
- FEDORA_NAMESPACE=avalon
- FEDORA_URL=http://fedoraAdmin:fedoraAdmin@fedora:8080/fedora/rest
- SETTINGS__FFMPEG__PATH=/usr/bin/ffmpeg
- MASTER_FILE_PATH
- SETTINGS__MASTER_FILE_MANAGEMENT__STRATEGY=delete
- MATTERHORN_URL=http://matterhorn_system_account:CHANGE_ME@matterhorn:8080/
- MEDIAINFO_PATH=/usr/bin/mediainfo
- RAILS_ADDITIONAL_HOSTS=avalon
- RAILS_ENV=production
- RAILS_LOG_TO_STDOUT=true
- RAILS_SERVE_STATIC_FILES=true
- SETTINGS__REDIS__HOST=redis
- SETTINGS__REDIS__PORT=6379
- SMTP_ADDRESS
- SMTP_AUTHENTICATION
- SETTINGS__STREAMING__STREAM_TOKEN_TTL=20
- SMTP_DOMAIN
- SMTP_ENABLE_STARTTLS_AUTO
- SMTP_OPENSSL_VERIFY_MODE
- SMTP_PASSWORD
- SMTP_PORT
- SMTP_USER_NAME
- SOLR_URL=http://solr:8983/solr/avalon
- SETTINGS__STREAMING__CONTENT_PATH=/streamfiles
- SETTINGS__STREAMING__HTTP_BASE=http://${STREAMING_HOST}:8880/avalon
- SETTINGS__STREAMING__SERVER=nginx
- SYSTEM_GROUPS=administrator,group_manager,manager
- Z3950_ATTRIBUTE
- Z3950_DATABASE
- Z3950_HOST
- Z3950_PORT
volumes:
- ./masterfiles:/masterfiles
- ./storage:/home/app/avalon/storage #Config another location in storage.yml
- streaming:/streamfiles
ports:
- "80:3000"
worker:
<<: *avalon
command: bundle exec sidekiq -C config/sidekiq.yml
ports: []