Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
212 lines (201 loc) · 5.7 KB
/
Copy pathdocker-compose.yml
File metadata and controls
212 lines (201 loc) · 5.7 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
name: flowops
services:
postgres:
image: postgres:${POSTGRES_VERSION:-16-alpine}
container_name: flowops-postgres
env_file:
- .env
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
adminer:
image: adminer:${ADMINER_VERSION:-4.8.1}
container_name: flowops-adminer
env_file:
- .env
environment:
ADMINER_DEFAULT_SERVER: postgres
ports:
- "${ADMINER_PORT:-8081}:8080"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
keycloak:
image: quay.io/keycloak/keycloak:${KEYCLOAK_VERSION:-26.0.7}
container_name: flowops-keycloak
command: start-dev --import-realm
env_file:
- .env
environment:
KC_BOOTSTRAP_ADMIN_USERNAME: ${KEYCLOAK_ADMIN:-admin}
KC_BOOTSTRAP_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD:-admin}
KC_HEALTH_ENABLED: "true"
KC_HTTP_PORT: 8080
KC_HOSTNAME: localhost
KC_HOSTNAME_STRICT: "false"
KC_HOSTNAME_STRICT_HTTPS: "false"
ports:
- "${KEYCLOAK_PORT:-8080}:8080"
volumes:
- ./keycloak/realm:/opt/keycloak/data/import
- keycloak_data:/opt/keycloak/data
healthcheck:
test: ["CMD-SHELL", "exec 3<>/dev/tcp/127.0.0.1/8080; echo -e 'GET /health/ready HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3; cat <&3 | grep -q '200 OK'"]
interval: 10s
timeout: 5s
retries: 12
start_period: 90s
restart: unless-stopped
seq:
image: datalust/seq:${SEQ_VERSION:-2024.3}
container_name: flowops-seq
env_file:
- .env
environment:
ACCEPT_EULA: "Y"
ports:
- "${SEQ_PORT:-5341}:80"
volumes:
- seq_data:/data
restart: unless-stopped
redis:
image: redis:${REDIS_VERSION:-7-alpine}
container_name: flowops-redis
ports:
- "${REDIS_PORT:-6379}:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
start_period: 5s
volumes:
- redis_data:/data
restart: unless-stopped
minio:
image: minio/minio:${MINIO_VERSION:-RELEASE.2024-12-18T13-15-44Z}
container_name: flowops-minio
env_file:
- .env
environment:
MINIO_ROOT_USER: ${STORAGE_ACCESS_KEY:-minioadmin}
MINIO_ROOT_PASSWORD: ${STORAGE_SECRET_KEY:-minioadmin}
command: server /data --console-address ":9001"
ports:
- "${MINIO_PORT:-9000}:9000"
- "${MINIO_CONSOLE_PORT:-9001}:9001"
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
minio-init:
image: minio/mc:${MINIO_MC_VERSION:-RELEASE.2025-08-13T08-35-41Z}
container_name: flowops-minio-init
depends_on:
minio:
condition: service_healthy
env_file:
- .env
entrypoint: >
/bin/sh -c "
mc alias set flowops http://minio:9000 $${STORAGE_ACCESS_KEY:-minioadmin} $${STORAGE_SECRET_KEY:-minioadmin} &&
mc mb --ignore-existing flowops/$${STORAGE_BUCKET:-flowops-attachments}
"
restart: "no"
api:
build:
context: ./flowops-api
dockerfile: Dockerfile
target: development
container_name: flowops-api
env_file:
- .env
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?schema=public
SEQ_SERVER_URL: http://seq:80
KEYCLOAK_ISSUER: http://localhost:8080/realms/${KEYCLOAK_REALM:-flowops}
KEYCLOAK_JWKS_URI: http://keycloak:8080/realms/${KEYCLOAK_REALM:-flowops}/protocol/openid-connect/certs
KEYCLOAK_CLIENT_ID: flowops-web
REDIS_URL: redis://redis:6379
STORAGE_ENDPOINT: http://minio:9000
STORAGE_FORCE_PATH_STYLE: "true"
ports:
- "${PORT:-5000}:5000"
volumes:
- ./flowops-api:/app
- api_node_modules:/app/node_modules
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
minio:
condition: service_healthy
minio-init:
condition: service_completed_successfully
seq:
condition: service_started
command: sh -c "npm install && npx prisma migrate deploy && npm run dev"
restart: unless-stopped
worker:
build:
context: ./flowops-api
dockerfile: Dockerfile
target: development
container_name: flowops-worker
env_file:
- .env
environment:
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}?schema=public
SEQ_SERVER_URL: http://seq:80
REDIS_URL: redis://redis:6379
volumes:
- ./flowops-api:/app
- api_node_modules:/app/node_modules
depends_on:
redis:
condition: service_healthy
seq:
condition: service_started
command: sh -c "npm install && npm run worker:dev"
restart: unless-stopped
web:
build:
context: ./flowops-web
dockerfile: Dockerfile
target: development
container_name: flowops-web
env_file:
- .env
ports:
- "5173:5173"
volumes:
- ./flowops-web:/app
- web_node_modules:/app/node_modules
depends_on:
- api
- keycloak
command: sh -c "npm install && npm run dev -- --host 0.0.0.0 --port 5173"
restart: unless-stopped
volumes:
api_node_modules:
keycloak_data:
minio_data:
postgres_data:
redis_data:
seq_data:
web_node_modules: