-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (97 loc) · 2.5 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
services:
stac-api:
container_name: stac-fastapi-os
image: stac-dms/stac-fastapi-os
restart: always
build:
context: ./api
target: development
env_file:
- ./api/.env
ports:
- 8000:8000
expose:
- 8000
environment:
- STAC_FASTAPI_TITLE=Deltares Data Management Suite STAC API
- STAC_FASTAPI_DESCRIPTION=A STAC API containing Deltares datasets
- STAC_FASTAPI_VERSION=3.0.0a2
- APP_HOST=0.0.0.0
- APP_PORT=8000
- RELOAD=true
- ENVIRONMENT=local
- WEB_CONCURRENCY=10
- ES_HOST=opensearch
- ES_PORT=9202
- ES_USE_SSL=false
- ES_VERIFY_CERTS=false
- BACKEND=opensearch
- DB_CONNECTION_URL=postgresql+psycopg://postgres:postgres@postgres:5432/postgres
volumes:
- ./api:/app
- /app/.venv
depends_on:
- opensearch
command: bash -c "./scripts/wait-for-it.sh os-container:9202 && python -m dmsapi.app"
postgres:
image: postgres:16
container_name: postgres
# Add any additional configuration for the Postgres container here
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
opensearch:
container_name: os-container
image: opensearchproject/opensearch:2.15.0
hostname: opensearch
environment:
- discovery.type=single-node
- plugins.security.disabled=true
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
volumes:
- ./api/opensearch/config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
- ./api/opensearch/snapshots:/usr/share/opensearch/snapshots
ports:
- "9202:9202"
- 9600:9600
stac-dms:
build:
context: ./frontend
target: run-dev
ports:
- 24678:24678
- 3000:3000
depends_on:
- stac-api
container_name: stac-dms-frontend
image: stac-dms/frontend
tmpfs:
- /tmp
volumes:
- ./frontend:/src
- /src/node_modules
- /nuxt/.nuxt
stac-proxy:
container_name: stac-proxy
image: stac-dms/proxy
build:
context: ./proxy
ports:
- 80:80
- 443:443
volumes:
- ./proxy/Caddyfile:/etc/caddy/Caddyfile
- ./proxy/data/data:/data
- ./proxy/data/config:/config
depends_on:
- stac-api
- stac-dms
environment:
- DOMAIN=localhost
- PROXY_BACKEND_HOST=stac-fastapi-os
- PROXY_BACKEND_PORT=8000
- PROXY_FRONTEND_HOST=stac-dms
- PROXY_FRONTEND_PORT=3000