Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (66 loc) · 1.79 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (66 loc) · 1.79 KB
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
# Orchestrates the full STAC-Atlas stack.
# Single source for DB credentials: project-root .env (see example.env)
# cp example.env .env
# docker compose up --build -d
networks:
stac-network:
driver: bridge
volumes:
stac_data:
services:
db:
extends:
file: db/docker-compose.yml
service: database
# Use root .env only — no need to duplicate credentials in db/.env
env_file:
- .env
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
STAC_API_PASSWORD: ${STAC_API_PASSWORD}
STAC_CRAWLER_PASSWORD: ${STAC_CRAWLER_PASSWORD}
networks: [stac-network]
crawler:
extends:
file: crawler/docker-compose.yml
service: crawler
networks: [stac-network]
# DB connection comes from root .env; crawler/.env is only crawl settings
environment:
NODE_ENV: production
PGHOST: stac_db
PGPORT: "5432"
PGUSER: stac_crawler
PGPASSWORD: ${STAC_CRAWLER_PASSWORD}
PGDATABASE: ${POSTGRES_DB}
depends_on:
db:
condition: service_healthy
api:
extends:
file: api/docker-compose.yml
service: api
networks: [stac-network]
# DB connection comes from root .env; api/.env is only API settings
environment:
DB_HOST: stac_db
DB_PORT: "5432"
DB_NAME: ${POSTGRES_DB}
DB_USER: stac_api
DB_PASSWORD: ${STAC_API_PASSWORD}
DATABASE_URL: postgresql://stac_api:${STAC_API_PASSWORD}@stac_db:5432/${POSTGRES_DB}
depends_on:
db:
condition: service_healthy
crawler:
condition: service_started
ui:
extends:
file: ui/docker-compose.yml
service: ui
networks: [stac-network]
depends_on:
api:
condition: service_started