This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
76 lines (76 loc) · 1.76 KB
/
docker-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
version: "3.7"
services:
postgrest:
profiles:
- production
- dev
image: postgrest/postgrest
ports:
- "3001:3000"
environment:
PGRST_DB_URI: ${PGRST_DB_URI}
PGRST_DB_SCHEMA: macrostrat_api
PGRST_DB_ANON_ROLE: ${PGUSER}
depends_on:
- db
db:
build: ./database
profiles:
- production
- dev
environment:
- PGUSER
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- ${PG_PORT}:5432
volumes:
- db_cluster:/var/lib/postgresql/data
dacite_prod:
build:
context: ./dacite
dockerfile: prod.Dockerfile
profiles:
- production
environment:
- NEXT_PUBLIC_SERVER_URL=${NEXT_PUBLIC_SERVER_URL}
- NEXT_PUBLIC_CLIENT_URL=${NEXT_PUBLIC_CLIENT_URL}
- NEXT_PUBLIC_TOPOLOGY_URL=${NEXT_PUBLIC_TOPOLOGY_URL}
ports:
- 1234:1234
birdseye:
build: ./BirdsEye/frontend
profiles:
- production
ports:
- "1235:1235"
geologic_map_server:
build: ./BirdsEye/backend
profiles:
- production
- dev
environment:
- GEOLOGIC_MAP_CONFIG=/app/docker-assets/docker-map-config.json
- GEOLOGIC_MAP_DATABASE=${GEOLOGIC_MAP_DATABASE}
- IMPORTER_API=${IMPORTER_API}
- EXPORTER_API=${EXPORTER_API}
entrypoint: "/python_app/docker-scripts/run"
ports:
- "40053:8000"
depends_on:
- db
# db_backup:
# profiles:
# - production
# image: ghcr.io/uw-macrostrat/pg-backup-service:latest
# environment:
# - DB_NAME=column_data
# - DB_BACKUP_PREFIX=column_data
# - PGHOST=database
# - S3_ENDPOINT
# - SCHEDULE=@weekly
# - DB_BACKUP_MAX_N=5
# - S3_ACCESS_KEY
# - S3_SECRET_KEY
# - S3_BACKUP_BUCKET
volumes:
db_cluster: