-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose.yaml
79 lines (73 loc) · 1.5 KB
/
compose.yaml
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
# Docker compose file for development environment
# Run with: docker compose up
services:
webapp:
build:
context: .
target: development
image: exhibits
stdin_open: true
tty: true
env_file:
- .env
environment:
- PORT=9292
volumes:
- .:/exhibits
# - gems:/usr/local/bundle
ports:
- 9292:9292
depends_on:
- mysql
- redis
- solr
- sidekiq
mysql:
image: mariadb:10.6
restart: always
environment:
- MYSQL_ROOT_PASSWORD=${DATABASE_RAILS_ROOT_PW}
- MYSQL_USER=${DATABASE_RAILS_USER}
- MYSQL_PASSWORD=${DATABASE_RAILS_USER_PW}
- MYSQL_DATABASE=${DATABASE_NAME_PREFIX}_development
ports:
- 3306:3306
volumes:
- db-data:/var/lib/mysql
solr:
extends:
file: compose.base.yaml
service: solr
ports:
- 8983:8983
volumes:
- solr_home:/opt/solr/server/solr
- ./solr/config:/opt/solr/server/configsets/exhibitsconf
redis:
extends:
file: compose.base.yaml
service: redis
ports:
- 6379:6379
volumes:
- redis:/data
sidekiq:
build:
context: .
target: development
entrypoint: docker/run_sidekiq.sh
image: exhibits
stdin_open: true
tty: true
env_file:
- .env
volumes:
- .:/exhibits
depends_on:
- redis
volumes:
db-data:
# Uncomment gems volume if installing gems locally and you want to persist gems across builds
# gems:
redis:
solr_home: