-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
42 lines (41 loc) · 1.36 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
42 lines (41 loc) · 1.36 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
# Local Postgres for `pnpm dev:api` and integration tests — not used in production (see docker-compose.yml).
# Named explicitly so it doesn't collide with docker-compose.yml's containers (both would
# otherwise default to the "open-artifacts" project name derived from the directory).
name: open-artifacts-dev
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: open_artifacts_dev
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
tmpfs:
- /var/lib/postgresql/data
# Local S3-compatible storage for artifact-file integration tests and `pnpm dev:api`. Optional:
# the storage-dependent tests and code paths degrade to "disabled" (501) when this isn't running
# or TEST_S3_BUCKET/S3_BUCKET isn't set — see apps/api/src/services/storage.ts.
minio:
image: quay.io/minio/minio:latest
restart: unless-stopped
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 10
tmpfs:
- /data