-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-psql.yml
70 lines (63 loc) · 1.61 KB
/
docker-compose-psql.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
# Build all images and run all containers
# `docker-compose -f docker-compose-local.yml up -d --build --force-recreate`
version: '3.8'
services:
postgres:
image: postgres:14
restart: on-failure
environment:
- POSTGRES_USER=geoblacklight_user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=geoblacklight_local_db
- POSTGRES_PORT=5432
- POSTGRES_HOST_AUTH_METHOD=trust
- TZ=America/New_York
ports:
- 5432
volumes:
- ./db-data:/var/lib/postgresql/data
networks:
- gbl-network
geoblacklight_web:
image: geoblacklight
build:
context: ./
dockerfile: DockerfilePsql
env_file: .env
tty: true
ports:
- "21800:4000"
depends_on:
- postgres
networks:
- gbl-network
geoblacklight_tasks:
image: geoblacklight
env_file: .env
entrypoint: ["sh", "-c"]
command:
- bin/db-wait.sh ${POSTGRES_HOST}:${POSTGRES_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:
- postgres
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: