-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
75 lines (68 loc) · 1.83 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
# Build all images and run all containers
# `docker-compose -f docker-compose-local.yml up -d --build --force-recreate`
version: '3.8'
services:
mysql:
image: mysql:8.0
restart: always
env_file:
- .env
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: ${MYSQL_DB}
# So you don't have to use root, but you can if you like
MYSQL_USER: ${MYSQL_USER}
# You can use whatever password you like
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
ports:
# <Port exposed> : < MySQL Port running inside container>
- ${MYSQL_PORT}
# Where our data will be persisted
volumes:
- './db-data:/var/lib/mysql'
networks:
- gbl-network
geoblacklight_web:
image: geoblacklight
build:
context: ./
dockerfile: Dockerfile
env_file: .env
tty: true
ports:
- "21800:4000"
depends_on:
- mysql
networks:
- gbl-network
geoblacklight_tasks:
image: geoblacklight
env_file: .env
entrypoint: ["sh", "-c"]
command:
- bin/db-wait.sh ${MYSQL_HOST}:${MYSQL_PORT} sh -c "bundle exec rails db:migrate && echo 'migrated' && bundle exec rake devise_guests:delete_old_guest_users[7] && echo 'deleted guests'"
tty: true
depends_on:
- mysql
networks:
- gbl-network
solr:
image: solr:8.8
ports:
- 8983:8983
command:
- sh
- "-c"
- "solr-precreate geoblacklight /opt/solr/server/configsets/geoblacklightconf"
volumes:
- solr_home:/var/solr/data:cached
- ./solr/conf:/opt/solr/server/configsets/geoblacklightconf
networks:
- gbl-network
# Create a custom docker network if it does not exist already
networks:
gbl-network:
name: gbl-network
volumes:
solr_home: