-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
158 lines (148 loc) · 4.34 KB
/
docker-compose.yaml
File metadata and controls
158 lines (148 loc) · 4.34 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
services:
db:
image: timescale/timescaledb-ha:pg17-ts2.21@sha256:a2f4731fd341e93a96fdc49f21137db0ec27bd3d72a5dab241fec2b344f2f54c
ports:
- "${BUOY_RETRIEVER_DB_PORT:-5432}:5432"
env_file:
- ./docker-data/secret.env
environment:
PGDATA: /var/lib/postgresql/data/PGDATA
volumes:
- ./docker-data/postgres:/var/lib/postgresql/data:cached
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 5s
retries: 5
# cache:
# image: redis:6.0.7@sha256:0ab24e410ae42f99f1e861bd351b5ce7ca8c9eec7886c979a8650ba7fc18ad3b
# queue:
# image: redis:6.0.7@sha256:0ab24e410ae42f99f1e861bd351b5ce7ca8c9eec7886c979a8650ba7fc18ad3b
spotlight:
image: ghcr.io/getsentry/spotlight:latest
ports:
- "${BUOY_RETRIEVER_SPOTLIGHT_PORT:-8969}:8969"
backend:
build:
context: ./backend
target: develop
image: buoy_retriever_backend
command: "python manage.py runserver 0:8080"
volumes:
- ./backend:/home/uwsgi:cached
- /home/uwsgi/.pixi
- ./docker-data/media:/media:cached
- ./docker-data/static:/static:cached
ports:
- "${BUOY_RETRIEVER_BACKEND_PORT:-8080}:8080"
env_file:
- ./docker-data/common.env
- ./docker-data/secret.env
environment:
BACKEND_ENV: dev
POSTGRES_HOST: db
# CACHE_HOST: cache
# QUEUE_HOST: queue
depends_on:
db:
condition: service_healthy
# - cache
# - queue
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: dev
command: npm run dev
stdin_open: true
volumes:
- ./frontend:/app:cached
- /app/node_modules
- /app/.next/
- /app/build/
ports:
- "${BUOY_RETRIEVER_FRONTEND_PORT:-3000}:3000"
environment:
NEXT_PUBLIC_BACKEND_URL: http://backend:8080
dagster_postgres:
image: timescale/timescaledb-ha:pg17-ts2.21@sha256:a2f4731fd341e93a96fdc49f21137db0ec27bd3d72a5dab241fec2b344f2f54c
environment:
PGDATA: /var/lib/postgresql/data/PGDATA
env_file:
- ./docker-data/dagster.env
volumes:
- ./docker-data/dagster_postgres:/var/lib/postgresql/data:cached
ports:
- "${BUOY_RETRIEVER_DAGSTER_DB_PORT:-5433}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 5s
retries: 5
dagster_daemon:
build: ./pipeline/_dagster
command:
- dagster-daemon
- run
env_file:
- ./docker-data/dagster.env
volumes:
- ./pipeline/_dagster/workspace.yaml:/home/ioos/workspace.yaml
- ./pipeline/_dagster/dagster.yaml:/home/ioos/dagster.yaml
- ./docker-data/dagster_home/storage:/home/ioos/storage
depends_on:
dagster_postgres:
condition: service_healthy
dagster_ui:
build: ./pipeline/_dagster
env_file:
- ./docker-data/dagster.env
ports:
- "${BUOY_RETRIEVER_DAGSTER_UI_PORT:-3002}:3002"
volumes:
- ./pipeline/_dagster/workspace.yaml:/home/ioos/workspace.yaml
- ./pipeline/_dagster/dagster.yaml:/home/ioos/dagster.yaml
- ./docker-data/dagster_home/storage:/home/ioos/storage
depends_on:
dagster_postgres:
condition: service_healthy
dagster_daemon:
condition: service_started
s3_timeseries:
build:
context: .
dockerfile: ./pipeline/s3_timeseries/Dockerfile
args:
IMAGE_TAG: s3_timeseries_dev
env_file:
- ./docker-data/common.env
- ./docker-data/dagster.env
- ./docker-data/secret.env
- ./docker-data/s3_pipeline.env
volumes:
- ./pipeline/s3_timeseries:/home/ioos:cached
- /home/ioos/.pixi
- ./common/:/home/ioos/common/:cached
- ./docker-data/shared-fs:/mnt/efs/
- ./docker-data/datasets_config/s3_pipeline/metadata/:/mnt/datasets_config/metadata
depends_on:
backend:
condition: service_started
hohonu:
build:
context: .
dockerfile: ./pipeline/hohonu/Dockerfile
args:
IMAGE_TAG: hohonu_dev
env_file:
- ./docker-data/common.env
- ./docker-data/dagster.env
- ./docker-data/secret.env
volumes:
- ./pipeline/hohonu:/home/ioos:cached
- /home/ioos/.pixi
- ./common/:/home/ioos/common/:cached
- ./docker-data/shared-fs:/mnt/efs/
depends_on:
backend:
condition: service_started