forked from performant-software/core-data-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (61 loc) · 1.7 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
version: "3.5"
services:
app:
build:
args:
- RAILS_ENV=docker
- REACT_APP_HOSTNAME=$REACT_APP_HOSTNAME
- REACT_APP_IIIF_MANIFEST_ITEM_LIMIT=$REACT_APP_IIIF_MANIFEST_ITEM_LIMIT
- REACT_APP_MAP_TILER_KEY=$REACT_APP_MAP_TILER_KEY
context: .
container_name: core-data-cloud-app
depends_on:
- db
entrypoint: /app/docker-entrypoint.sh
environment:
- DATABASE_HOST=db
- DATABASE_USERNAME=$DATABASE_USERNAME
- DATABASE_PASSWORD=$DATABASE_PASSWORD
- DATABASE_NAME=$DATABASE_NAME
- DATABASE_PORT=5432
- IIIF_CLOUD_API_KEY=$IIIF_CLOUD_API_KEY
- IIIF_CLOUD_URL=$IIIF_CLOUD_URL
- IIIF_CLOUD_PROJECT_ID=$IIIF_CLOUD_PROJECT_ID
- IIIF_MANIFEST_ITEM_LIMIT=$IIIF_MANIFEST_ITEM_LIMIT
- PORT=3000
- RAILS_ENV=docker
- RAILS_LOG_TO_STDOUT=true
- RAILS_SERVE_STATIC_FILES=true
- SECRET_KEY_BASE=$SECRET_KEY_BASE
networks:
- default
- shared
ports:
- "3000:3000"
working_dir: /app
db:
container_name: core-data-cloud-db
environment:
- POSTGRES_PASSWORD=$DATABASE_PASSWORD
- POSTGRES_USER=$DATABASE_USERNAME
- PGDATA=$DATABASE_VOLUME:/var/lib/postgresql/data/pgdata
image: postgis/postgis:16-3.4-alpine
ports:
- "54334:5432"
volumes:
- $DATABASE_VOLUME:/var/lib/postgresql/data
working_dir: /app
typesense:
container_name: core-data-cloud-typesense
environment:
TYPESENSE_API_KEY: $TYPESENSE_API_KEY
TYPESENSE_DATA_DIR: /data
image: typesense/typesense:0.25.1
ports:
- "8108:8108"
volumes:
- $TYPESENSE_VOLUME:/data
networks:
shared:
name: pssexternal
external: true