-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (65 loc) · 1.72 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
services:
warehouse:
image: postgres:17
restart: always
environment:
POSTGRES_USER: warehouse_user
POSTGRES_PASSWORD: warehouse_password
POSTGRES_DB: warehouse
ports:
- "7654:5432"
volumes:
- warehouse_data:/var/lib/postgresql/data
matchbox-postgres:
image: postgres:17
restart: always
environment:
POSTGRES_USER: matchbox_user
POSTGRES_PASSWORD: matchbox_password
POSTGRES_DB: matchbox
ports:
- "5432:5432"
volumes:
- matchbox_data:/var/lib/postgresql/data
matchbox-storage:
image: minio/minio:latest
restart: always
volumes:
- matchbox_store:/data
command: server --console-address ":9001" /data
ports:
- "${MB__DATASTORE_PORT:-9000}:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${MB__DATASTORE__ACCESS_KEY_ID}
MINIO_ROOT_PASSWORD: ${MB__DATASTORE__SECRET_ACCESS_KEY}
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 5s
retries: 5
api:
build:
context: .
args:
ENV_FILE: dev_docker.env
dockerfile: src/matchbox/server/Dockerfile
ports:
- "8000:8000"
depends_on:
- matchbox-postgres
- matchbox-storage
develop:
# https://docs.docker.com/compose/file-watch/#compose-watch-versus-bind-mounts
watch:
# Sync the working directory with the `/app` directory in the container
- action: sync
path: ./src/matchbox/server
target: /code/src/matchbox/server
# Rebuild the image on changes to the `pyproject.toml`
- action: rebuild
path: ./pyproject.toml
volumes:
warehouse_data:
matchbox_data:
matchbox_store: